1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
using System; interface I { } struct S : I { } class Program { public static int Main () { int? a = 5; int? b = 5; IComparable ic_a = a; IComparable ic_b = b; if (ic_a.CompareTo (ic_b) != 0) return 1; S? s = new S (); I iface = s; return 0; } }