December 05, 2005 Template error? | ||||
---|---|---|---|---|
| ||||
The following fails to compile: struct Foo { struct Bar(T) { static void bar() {} } } void main() { Foo.Bar!(char).bar(); } If Foo is a class, then it compiles fine. |
December 10, 2005 Re: Template error? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris Attachments: | Kris schrieb am 2005-12-05: > The following fails to compile: > > struct Foo > { > struct Bar(T) > { > static void bar() {} > } > } > > void main() > { > Foo.Bar!(char).bar(); > } > > If Foo is a class, then it compiles fine. Added to DStress as http://dstress.kuehne.cn/run/s/static_35_A.d http://dstress.kuehne.cn/run/s/static_35_B.d http://dstress.kuehne.cn/run/s/static_35_C.d http://dstress.kuehne.cn/run/s/static_35_D.d http://dstress.kuehne.cn/run/s/static_35_E.d http://dstress.kuehne.cn/run/s/static_35_F.d Thomas |
Copyright © 1999-2021 by the D Language Foundation