digitalmars.D.bugs - [Issue 12298] New: Templates can be used in mixin even when not declared as mixin template
- d-bugmail puremagic.com (25/25) Mar 04 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12298
https://d.puremagic.com/issues/show_bug.cgi?id=12298 Summary: Templates can be used in mixin even when not declared as mixin template Product: D Version: D2 Platform: All URL: http://dlang.org/template-mixin OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: Jesse.K.Phillips+D gmail.com 11:23:04 PST --- The below code shows that a normal template can still be used within a mixin statement. If this is still desired it should be stated in the documentation. template Foo() { enum x = 5; } mixin Foo; static assert(x == 5); -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 04 2014