[Issue 21740] Typeof mixin regression with v2.096
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 21 19:32:19 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21740
--- Comment #10 from Boris Carvajal <boris2.9 at gmail.com> ---
(In reply to moonlightsentinel from comment #8)
> You misunderstood my second example, it changes foo to return a string.
Yep, now I get it, my bad.
I shouldn't have put the example, just think it doesn't exist.
So all it's reduced to whether mixin should be able to parse a void expression
or not.
(In reply to kinke from comment #9)
> No idea what the spec says, but I expected `mixin(foo())`, i.e.,
> `mixin(void)` to fail
Yep, though this '(void)' was always something more, before there was no way to
express it but the new 'cast(void)0' thing took over and now it's working.
--
More information about the Digitalmars-d-bugs
mailing list