[Issue 1732] New: Mixin can not be instantiated
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 16 06:19:29 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1732
Summary: Mixin can not be instantiated
Product: D
Version: 1.024
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: aarti at interia.pl
template init() {
a = 5;
}
void main() {
int a;
mixin init;
}
it doesn't compile, but it should. According to specs mixin should be evaluated
in the context of its instantiation. Also another examples, in specs suggest
that it should be allowed.
Probably also 2.0 issue.
--
More information about the Digitalmars-d-bugs
mailing list