Checking template parameter types of class
thedeemon via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon May 25 01:31:18 PDT 2015
On Monday, 25 May 2015 at 04:15:00 UTC, tcak wrote:
>>> main.d(243): Error: class main.FileResourceList(T) if (is(T :
>>> FileResource)) is used as a type
> The error message is not indicating directly this, though
> logically it is still correct.
Compiler means "template is used as a type" which is an error
since templates are not types. I guess adding the word "template"
to that message would make it more clear.
More information about the Digitalmars-d-learn
mailing list