1 // Compiler options: -warnaserror
5 public interface IFoo<T>
10 public static bool Test (T x)
15 public static bool Test ()
21 public static bool TestB ()
28 class Y<T> where T : struct
33 return o is System.Nullable <T>;
39 public static bool TestA (object o)
44 public static bool TestB<T> (T o)
49 public static int TestC ()
61 if (Foo<int>.Test (3))
67 // False expected int? != null
68 if (Foo<int?>.TestB())
82 Console.WriteLine ("OK");