2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git] / mcs / tests / gtest-294.cs
blobd66c6e2f3b5c79df2d4fa318cd0b13604cadce28
1 class A {}
2 class B : A {}
4 class X
6 public static A Test (A a, B b)
8 return b ?? a;
11 static int Main ()
13 A a = new A ();
14 B b = new B ();
16 if (Test (a, b) != b)
17 return 1;
19 if (Test (null, b) != b)
20 return 2;
22 if (Test (a, null) != a)
23 return 3;
25 if (Test (null, null) != null)
26 return 4;
28 return 0;