Add support for Windows x64 Full AOT + LLVM + Interpreter on CI. (#15276)
[mono-project.git] / mcs / tests / test-283.cs
blob7d7a1faa211436888672654fd6e53063ef909553
1 class X {
2 public virtual int Foo () {
3 return 1;
7 class Y : X {
9 delegate int D();
12 D GetIt () {
13 return new D (base.Foo);
16 D GetIt2 () {
17 return base.Foo;
20 public override int Foo () {
21 return 0;
24 public static int Main ()
26 if (new Y ().GetIt () () == 1 && new Y ().GetIt2 () () == 1) {
27 System.Console.WriteLine ("good");
28 return 0;
31 return 1;