[Issue 15068] New: wrong error message on attempting to use type as template

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Sep 16 01:34:39 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15068

          Issue ID: 15068
           Summary: wrong error message on attempting to use type as
                    template
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

void main()
{
    Stuff!int s;
}
struct Stuff(T)
{
    T!int var;
}

leads to the error:
test.d(8): Error: template instance T!int T is not a template declaration, it
is a alias

T is not an alias, it's a type.

--


More information about the Digitalmars-d-bugs mailing list