return 1;
return 0;
}
+
+ public class Enumbers<T> {
+ public object Enumerate (List<KeyValuePair<T, string>> alist)
+ {
+ return alist.ToArray ();
+ }
+ }
+
+ public static int test_0_checkthis_gshared_call () {
+ Enumbers<string> e = new Enumbers<string> ();
+ try {
+ e.Enumerate (null);
+ return 1;
+ }
+ catch (NullReferenceException) {
+ }
+ return 0;
+ }
}
* the method in the rgctx and do an
* indirect call.
*/
+ if (fsig->hasthis)
+ MONO_EMIT_NEW_CHECK_THIS (cfg, sp [0]->dreg);
+
addr = emit_get_rgctx_method (cfg, context_used, cmethod, MONO_RGCTX_INFO_GENERIC_METHOD_CODE);
ins = (MonoInst*)mono_emit_calli (cfg, fsig, sp, addr, imt_arg, vtable_arg);
goto call_end;