digitalmars.D.bugs - [Issue 15116] New: Unreasonable rejection of tuple field access via
- via Digitalmars-d-bugs (32/32) Sep 25 2015 https://issues.dlang.org/show_bug.cgi?id=15116
https://issues.dlang.org/show_bug.cgi?id=15116 Issue ID: 15116 Summary: Unreasonable rejection of tuple field access via named mixin Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: k.hara.pg gmail.com Test case: alias TypeTuple(T...) = T; template Mix() { TypeTuple!(int, int) tup; } struct S { mixin Mix mix; } void main() { S s; auto x1 = s.tup; // OK auto x2 = s.mix.tup; // NG, bug } --
Sep 25 2015