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: [email protected]
ReportedBy: [email protected]
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: -------