GenericIFace iface = (GenericIFace)myobj;
if (iface.Foo <int> () != 0)
return 5;
- if (iface.Foo <string> () != "")
+ if (iface.Foo <string> () != null)
return 6;
+
+ // Test type identity (#504886, comment #10 ff.)
+
+ if (typeof (R1) != myobj.GetType ())
+ return 7;
+ AppDomain.Unload (app2);
+
Console.WriteLine("test-ok");
return 0;
}