2 // Test a generic type type param field
5 .assembly extern mscorlib { }
8 .namespace Mono.ILASM.Tests {
10 .class public Covariant<+T> extends [mscorlib]System.Object {
14 .method public instance void .ctor () {
19 .class public Contravariant<-T> extends [mscorlib]System.Object {
23 .method public instance void .ctor () {
28 .class public Driver extends [mscorlib]System.Object {
30 .method public static void Main () {
32 newobj instance void class Mono.ILASM.Tests.Covariant<string>::.ctor ()
33 castclass class Mono.ILASM.Tests.Covariant<object>
34 call void [mscorlib]System.Console::WriteLine (object)
36 newobj instance void class Mono.ILASM.Tests.Covariant<object>::.ctor ()
37 castclass class Mono.ILASM.Tests.Covariant<string>
38 call void [mscorlib]System.Console::WriteLine (object)