www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17575] New: named mixin template error message


          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 puremagic.com
          Reporter: qs.il.paperinik gmail.com


    mixin template Foo() { }

    void main()
        mixin Foo F;

It gives: Error: no property 'x' for type 'void'

The error message should be like: 'x' is not a member of template 'Foo!()'

Jun 29 2017