bring Mono Security to monotouch
[mcs.git] / tests / gtest-etree-03.cs
blobe6562cc1f35a76cd7fe9c00f627501287bf135e5
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 static int Main()
24 return S<int>.Test ();