1 // Test : Using VAR/MVAR as class ref
2 // Eg. !!B as a constraint
4 .assembly extern mscorlib
10 .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = (
11 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
12 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
19 /* Incorrect, meaning-less code, but this is just to
20 check support for using VAR/MVAR as class refs */
21 .class private auto ansi beforefieldinit g`1<T>
26 .method public hidebysig specialname rtspecialname
27 instance default void .ctor () cil managed
31 IL_0001: call instance void object::.ctor()
35 /* Using !!B as a constraint */
36 .method public static hidebysig
37 default !!A foo< (!!B) A,B> (!!B _b, !T _t, !!A _a) cil managed