1 // Compiler options: -langversion:default
3 public partial class Test
5 public readonly Foo TheFoo
;
9 this.TheFoo
= new Foo ();
12 public partial interface IFoo
19 return TheFoo
.Hello (this);
23 public partial class Test
25 public partial class Foo
: IFoo
27 int IFoo
.Hello (Test test
)
32 public int Hello (Test test
)
38 public int TestIFoo (IFoo foo
)
40 return foo
.Hello (this);
46 public static int Main ()
48 Test test
= new Test ();
49 if (test
.TestFoo () != 1)
51 if (test
.TestIFoo (test
.TheFoo
) != 2)