[Issue 12298] New: Templates can be used in mixin even when not declared as mixin template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 4 11:23:08 PST 2014
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 at puremagic.com
ReportedBy: Jesse.K.Phillips+D at gmail.com
--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2014-03-04 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: -------
More information about the Digitalmars-d-bugs
mailing list