[Issue 15116] New: Unreasonable rejection of tuple field access via named mixin
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Sep 25 05:30:11 PDT 2015
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 at puremagic.com
Reporter: k.hara.pg at 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
}
--
More information about the Digitalmars-d-bugs
mailing list