[Issue 11954] Function call in string mixin inside mixin template without return value mistaken as declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 7 01:28:04 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11954



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-07 01:28:02 PST ---
(In reply to comment #1)
> Mixin templates can only contain declarations, not statements.

To be more precise, mixin("testFkt();") is parsed as MixinDeclaraton:
http://dlang.org/module#MixinDeclaration

and it never be parsed as the MixinStatement:
http://dlang.org/statement#MixinStatement

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list