[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-etree-03.cs
blobde9266c23faa679792dff4f4beedf650f818b5db
1 using System;
2 using System.Linq.Expressions;
4 struct S<T> where T : struct
6 public static int Test ()
8 Expression<Func<T?, bool>> e = (T? o) => o == null;
9 if (!e.Compile ().Invoke (null))
10 return 1;
12 if (e.Compile ().Invoke (default (T)))
13 return 2;
15 Console.WriteLine ("OK");
16 return 0;
20 class C
22 public static int Main()
24 return S<int>.Test ();