May 23, 2004 Mixin Bug - super | ||||
---|---|---|---|---|
| ||||
template A(T)
{
this() { }
this(int i)
{ super.foo(); //This is the problem line
}
}
class B
{
void foo() { } }
class C : B
{
mixin A!(C);
}
void main()
{
C c = new C;
}
--
-Anderson: http://badmama.com.au/~anderson/
|
May 23, 2004 Re: Mixin Bug - super | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | J Anderson wrote: > template A(T) > { > this() { } > this(int i) > { super.foo(); //This is the problem line > } > } > > > class B > { > void foo() { } } > > class C : B > { > mixin A!(C); > } > > void main() > { > C c = new C; > } Yeah, that's a pretty abrupt message... Assertion failure: 'cd' on line 1117 in file 'expression.c' abnormal program termination -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/ |
Copyright © 1999-2021 by the D Language Foundation