In mono/dis:
[mono.git] / mono / dis / tests / ambiguous-gen-params.il
1 // Test for type/method having type parameters with identical names
2 // 
3 // Roundtrip with ilasm2/monodis should yield same 
4 //        meth <A,A, B> (!!0 _a1, !!1 _a2, !1 _t, !!B _b)
5
6 .assembly extern mscorlib
7 {
8   .ver 2:0:0:0
9 }
10 .assembly 'ambiguous-gen-params'
11 {
12   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() =  (
13                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
14                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
15
16   .ver  0:0:0:0
17 }
18 .module 'ambiguous-gen-params.dll'
19
20
21   .class private auto ansi beforefieldinit g`1<T, T>
22         extends [mscorlib]System.Object
23   {
24
25     .method public hidebysig  specialname  rtspecialname 
26            instance default void .ctor ()  cil managed 
27     {
28         .maxstack 8
29         IL_0000:  ldarg.0 
30         IL_0001:  call instance void object::.ctor()
31         IL_0006:  ret 
32     }
33
34     .method public static  hidebysig 
35            default void meth <A,A, B> (!!0 _a1, !!1 _a2, !1 _t, !!B _b)  cil managed 
36     {
37         ret
38     }
39
40     .method public static  hidebysig 
41            default !!A foo<A,B> (!!B _b, !1 _t, !!A _a)  cil managed 
42     {
43         .maxstack 1
44         .locals init (
45                 !!A     V_0)
46         IL_0000:  ldloca.s 0
47         IL_0002:  initobj !!0
48         IL_0008:  ldloc.0 
49         IL_0009:  ret 
50     }
51
52   }
53