← Back to index
|
Original Bugzilla link
Bug 11170 – member of locally mixed mixin cannot be read by alias this
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-03T22:25:40Z
Last change time
2024-12-13T18:12:16Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Elvis Zhou
Moved to GitHub: dmd#17616 →
Comments
Comment #0
by elvis.x.zhou — 2013-10-03T22:25:40Z
mixin template test() { int next; } void foo(alias l)() { l.next = 0; } void bar(alias l, alias t)() { l.next = 0; } void main() { struct A { int next; } A a; mixin test l1; mixin test l2; foo!(a);//Okay foo!(l1);//Error bar!(l1,a);//Okay bar!(l1,l2);//Error }
Comment #1
by robert.schadek — 2024-12-13T18:12:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/17616
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB