Files
ldc/test/classes10.d
Tomas Lindquist Olsen e0176785c7 [svn r121] Finished ModuleInfo implementation.
Static ctors/dtors now work according to spec.
Changed class vtable types slightly in some cases. Overridden functions now always take the the type of the first class declaring the method as this parameter. This helps when using headers (w. implementation somewhere else)
2007-11-26 04:49:23 +01:00

18 lines
205 B
D

module classes10;
class C
{
int i;
override char[] toString()
{
return "foobar";
}
}
void main()
{
Object o = new C;
char[] s = o.toString();
assert(s == "foobar");
}