September 11, 2004 Template specialization bug | ||||
---|---|---|---|---|
| ||||
The following does not compile: --------------------------- class foo(T: T[]) { } class bar(Tp: Tp[]) { } alias bar!(char[]) cbar; void main() {} ---------------------------- It gives the error message: template instance bar!(char[]) does not match any template declaration Renaming T to Tp, or Tp to T (or removing foo altogether) removes the error. I'm on linux using dmd 0.101. Nick |
Copyright © 1999-2021 by the D Language Foundation