1 // Test for Ref to external generic types
\r
3 .assembly extern mscorlib
\r
11 .assembly 'gen-extern-type'
\r
13 .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78
\r
14 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 )
\r
20 .class private auto ansi beforefieldinit test
\r
21 extends [mscorlib]System.Object
\r
23 .method public hidebysig specialname rtspecialname
\r
24 instance void .ctor() cil managed
\r
28 IL_0001: call instance void [mscorlib]System.Object::.ctor()
\r
32 .method public hidebysig static void Main() cil managed
\r
36 .locals init (class [one]ns.gen_m`1<int32>[] V_0)
\r
38 IL_0001: newarr class [one]ns.gen_m`1<int32>
\r
42 IL_0009: newobj instance void class [one]ns.gen_m`1<int32>::.ctor()
\r
44 IL_000f: ldstr "asd"
\r
45 IL_0014: call void class [one]ns.gen_m`1<int32>::foo<string>(!!0)
\r
47 IL_001a: call void class [one]ns.gen_m`1<int32>::foo<int32,string>(!!0)
\r