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))
12 if (e
.Compile ().Invoke (default (T
)))
15 Console
.WriteLine ("OK");
24 return S
<int>.Test ();