[Issue 18386] mixin ... isn't a template error when used in new scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 30 13:55:17 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=18386
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
Is a function allowed to return an `enum string`? Shouldn't you use one of
these:
string b(alias d)() {
return `writeln("a");`;
}
enum string b(alias d) = `writeln("a");`;
I think this should be marked `accepts-invalid`.
--
More information about the Digitalmars-d-bugs
mailing list