Thread overview | |||||
---|---|---|---|---|---|
|
January 26, 2004 Bug: Template class inheriting from another template class. | ||||
---|---|---|---|---|
| ||||
Given: class C() { void foo() { printf("C "); } } class E(T) : C!() { void foo() { printf("E "); super.foo(); } } alias E!(int) Eint; void main() { Eint eint = new Eint(); eint.foo(); } The compiler spits out: test2.d(23): Eint is used as a type -- andy |
January 26, 2004 Re: Bug: Template class inheriting from another template class. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andy Friesen | Andy Friesen wrote: > Given: > > class C() { > void foo() { > printf("C "); > } > } > > class E(T) : C!() { > void foo() > { > printf("E "); > super.foo(); > } > } > > alias E!(int) Eint; > > void main() { > Eint eint = new Eint(); > eint.foo(); > } > > The compiler spits out: > > test2.d(23): Eint is used as a type > > > -- andy Humm, works for me. -- -Anderson: http://badmama.com.au/~anderson/ |
January 26, 2004 Re: Bug: Template class inheriting from another template class. | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | J Anderson wrote:
>
> Humm, works for me.
>
doh. It works in 0.79.
-- andy
|
Copyright © 1999-2021 by the D Language Foundation