1 // Compiler options: -warnaserror
7 public interface IFoo<T>
12 public static bool Test (T x)
17 public static bool Test ()
23 public static bool TestB ()
30 class Y<T> where T : struct
35 return o is System.Nullable <T>;
41 public static bool TestA (object o)
46 public static bool TestB<T> (T o)
51 public static int TestC ()
61 static bool Check1 (E? e)
66 static bool Check2<T> (E e) where T : struct
71 public static int Main ()
73 if (Foo<int>.Test (3))
79 // False expected int? != null
80 if (Foo<int?>.TestB())
100 if (Check2<int> (E.Item))
103 Console.WriteLine ("OK");