1 .assembly extern mscorlib
4 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
8 .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() = (
9 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
10 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
12 .hash algorithm 0x00008004
15 .module repro.exe // GUID = {5C01F6E6-77DE-4AB1-AD74-6AA56EAA8CD8}
18 .class private auto ansi beforefieldinit Foo`1<T>
19 extends [mscorlib]System.Object
24 .method public hidebysig specialname rtspecialname
25 instance default void '.ctor' () cil managed
27 // Method begins at RVA 0x20ec
28 // Code size 22 (0x16)
33 IL_0001: call instance void object::'.ctor'()
38 IL_0010: stfld !0 class Foo`1<!0>::t
40 } // end of method Foo`1::.ctor
42 } // end of class Foo`1
44 .class private auto ansi beforefieldinit Program
45 extends [mscorlib]System.Object
49 .method public hidebysig specialname rtspecialname
50 instance default void '.ctor' () cil managed
52 // Method begins at RVA 0x2110
56 IL_0001: call instance void object::'.ctor'()
58 } // end of method Program::.ctor
61 .method private static hidebysig
62 default void CreateInvalidInstantiation () cil managed noinlining
64 // Method begins at RVA 0x2118
67 IL_0000: newobj instance void class Foo`1<void>::'.ctor'()
70 } // end of method Program::CreateInvalidInstantiation
73 .method private static hidebysig
74 default int32 Main () cil managed
76 // Method begins at RVA 0x2120
78 // Code size 52 (0x34)
83 IL_0000: call void class Program::CreateInvalidInstantiation()
84 IL_0005: ldstr "NO EXCEPTION"
85 IL_000a: call void class [mscorlib]System.Console::WriteLine(string)
88 IL_0011: leave IL_0032
90 IL_0016: leave IL_0032
93 catch class [mscorlib]System.TypeLoadException { // 0
96 IL_0021: call void class [mscorlib]System.Console::WriteLine(string)
99 IL_0028: leave IL_0032
101 IL_002d: leave IL_0032
106 } // end of method Program::Main
108 } // end of class Program