May 21, 2004 template: cannot resolve forward reference | ||||
---|---|---|---|---|
| ||||
compiling this code fragment: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> class C(T1) { alias T1 type1; } class C(T1,T2) { alias T1 type1; alias C!(T2) type2; } void main() { alias C!(int,long) CT; CT c = new CT(); } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< does give the following output: parse bug3 semantic bug3 semantic2 bug3 semantic3 bug3 template instance C!(long) C is not a template declaration template instance C!(long) cannot resolve forward reference regards, roel |
Copyright © 1999-2021 by the D Language Foundation