Bug 8188 – need this to access member when mixining in a function
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-02T13:04:00Z
Last change time
2012-06-11T16:55:59Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
tobias
Comments
Comment #0 by tobias — 2012-06-02T13:04:37Z
mixin template print(b...)
{
void doprint() {
foreach(mem; b)
writeln(b);
}
}
class A { int x,y; mixin print!(x, y); }
Now DMD says: need this to access member
Maybe related to Issue 3159