mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 00:03:14 +01:00
Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
21 lines
149 B
D
21 lines
149 B
D
class Foo
|
|
{
|
|
int i;
|
|
}
|
|
|
|
class Bar : Foo
|
|
{
|
|
int j;
|
|
}
|
|
|
|
void func()
|
|
{
|
|
scope c = new Bar;
|
|
func2(c);
|
|
}
|
|
|
|
void func2(Bar c)
|
|
{
|
|
c.i = 123;
|
|
}
|