[Issue 21740] Typeof mixin regression with v2.096
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 21 17:53:17 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21740
--- Comment #8 from moonlightsentinel at disroot.org ---
(In reply to Boris Carvajal from comment #7)
> The second case looks like another bug, why is the call expression "foo()",
> of void value, changing to a function symbol.
You misunderstood my second example, it changes foo to return a string.
Slightly modified example that should be less confusing:
----------------------------------------
string foo() { return "bar"; }
int bar;
pragma(msg, typeof(mixin(foo())));
----------------------------------------
=(CTFE)=> pragma(msg, typeof(mixin("bar"))); // int
--
More information about the Digitalmars-d-bugs
mailing list