2 // Test a generic type type param field
5 .assembly extern mscorlib { }
8 .namespace Mono.ILASM.Tests {
10 .class public Set<T> extends [mscorlib]System.Object {
14 .method public instance void .ctor (!0 arg) {
17 stfld !0 class Mono.ILASM.Tests.Set::val
21 .method public instance !0 access () {
24 ldfld !0 class Mono.ILASM.Tests.Set::val
25 // just to make sure locals work, too
32 .class public Driver extends [mscorlib]System.Object {
34 .method public static void Main ()
37 .locals init ( class Mono.ILASM.Tests.Set<int32>,
38 class Mono.ILASM.Tests.Set<float64>)
41 newobj instance void class Mono.ILASM.Tests.Set<int32>::.ctor (int32)
45 call instance int32 class Mono.ILASM.Tests.Set<int32>::access ()
46 call void [mscorlib]System.Console::WriteLine (int32)
49 newobj instance void class Mono.ILASM.Tests.Set<float64>::.ctor (float64)
53 call instance float64 class Mono.ILASM.Tests.Set<float64>::access ()
54 call void [mscorlib]System.Console::WriteLine (float64) ret