[Issue 3116] New: cannot use basic types as template alias parameters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 30 04:54:30 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3116
Summary: cannot use basic types as template alias parameters
Product: D
Version: 1.045
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: rejects-valid, spec
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: kamm-removethis at incasoftware.de
The spec says template alias parameters accept type names, but basic types
don't work:
template T(alias a) { }
alias T!(int) ti; // error: does not match
alias T!(float) tf; // error: does not match
alias T!(Object) to; // ok
This seems to be because Type::toDsymbol returns NULL.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list