[Issue 17575] New: named mixin template error message
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jun 29 15:08:38 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17575
Issue ID: 17575
Summary: named mixin template error message
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: qs.il.paperinik at gmail.com
Consider
mixin template Foo() { }
void main()
{
mixin Foo F;
F.x;
}
It gives: Error: no property 'x' for type 'void'
The error message should be like: 'x' is not a member of template 'Foo!()'
--
More information about the Digitalmars-d-bugs
mailing list