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

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:
------- You are receiving this mail because: -------

Reply via email to