January 23, 2012 [Issue 7352] New: Poor error message when using variable as template type parameter | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7352 Summary: Poor error message when using variable as template type parameter Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2012-01-23 02:16:23 PST --- template Foo(X) { alias int Foo; } int m; alias Foo!(m) XXX; bug.d(7): Error: template instance Foo!(m) does not match template declaration Foo(X) It should say something like, "m is not a type". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation