www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14722] New: Improve "<template> is used as a type" error

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

          Issue ID: 14722
           Summary: Improve "<template> is used as a type" error message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

class Foo() {}
Foo f;

Currently, the compiler says:

test.d(2,5): Error: class test.Foo() is used as a type

It should mention that test.Foo() is a template.

--
Jun 23 2015