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
Comment #1 by k.hara.pg — 2012-06-06T05:40:54Z
Comment #2 by github-bugzilla — 2012-06-11T14:59:36Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4038d7de2c4004ee504afe6a0f909b6df42c093c fix Issue 8188 - need this to access member when mixining in a function https://github.com/D-Programming-Language/dmd/commit/a2106281dee2dfee6f3d6a4131317d149ed78d74 Merge pull request #984 from 9rnsr/fix8188 Issue 8188 - need this to access member when mixining in a function