1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
public struct Foo { public int i; public int j; public Foo.foo () { i = 1; } } public struct Bar : Foo { public Bar () { base.foo (); this.j = 1; } } void main () { var bar = Bar (); //FIXME assert (bar.i == 1); assert (bar.j == 1); }