1 // Compiler options: -langversion:experimental
12 static bool Generic
<T
> (T t
) where T
: class
14 return t
is default (T
);
17 public static int Main ()
49 object o4
= (byte?)255;
57 object o5
= (double)-255;
58 if (o5
is -byte.MaxValue
)
61 object o6
= MyEnum
.V_4
;
66 r4
= o6
is MyEnum
.V_4
;
70 ConstantPattern o7
= new ConstantPattern ();
71 if (!(o7
is ConstantPattern
))
87 if (!Generic
<Delegate
> (null))
90 Console
.WriteLine ("ok");