Move Enum and CorElementType to shared (dotnet/coreclr#23177)
[mono-project.git] / mcs / tests / gtest-603.cs
blobdcaf7a251984b7babcaa6d39fa9876bca99a3ee8
1 using System;
3 public class A<T>
5 T value;
7 public A (T value)
9 this.value = value;
12 public static explicit operator T (A<T> source)
14 return source.value;
18 public class Test
20 public static int Main ()
22 var source = new A<int?> (3);
23 if (N ((int)source) != 3)
24 return 1;
26 return 0;
29 static int N (int value)
31 return value;