https://issues.dlang.org/show_bug.cgi?id=20079

jacob <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |look.at.me.pee.please@gmail
                   |                            |.com

--- Comment #2 from jacob <[email protected]> ---
This isn't a bug, it is intended behavior. A mixin shouldn't overwrite a
function in that way. Mixins aren't macros, they have limitations so that it
doesn't unexpectedly change the meaning of something else.

Just don't include the forward declare. But something tells me you want to have
that behavior, such that forward declare would link to an external C++ function
or something, unless that mixin defines the function of the body. It would then
link to the D version?

--

Reply via email to