[Issue 14722] New: Improve "<template> is used as a type" error message
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Jun 23 03:18:29 PDT 2015
    
    
  
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 at puremagic.com
          Reporter: thecybershadow at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list