D - Bug: Template class inheriting from another template class.
- Andy Friesen <andy ikagames.com> Jan 25 2004
- J Anderson <REMOVEanderson badmama.com.au> Jan 26 2004
- Andy Friesen <andy ikagames.com> Jan 26 2004
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
Jan 25 2004
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/
Jan 26 2004
J Anderson wrote:Humm, works for me.
doh. It works in 0.79. -- andy
Jan 26 2004








Andy Friesen <andy ikagames.com>