2010-03-17 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / ilasm / codegen / GenericTypeInst.cs
index 1982cd5ba273fd7b4529401647d19613788f2d84..6634f418b6346482c33fd997c18fc649e79edf74 100644 (file)
@@ -48,7 +48,7 @@ namespace Mono.ILASM {
                         get { return class_ref.FullName + gen_args.ToString () + SigMod; }
                 }
 
-                public override BaseClassRef Clone ()
+                public override BaseTypeRef Clone ()
                 {
                         //Clone'd instance shares the class_ref and gen_args,
                         //as its basically used to create modified types (arrays etc)
@@ -99,7 +99,7 @@ namespace Mono.ILASM {
                                 string meth_name, BaseTypeRef[] param, int gen_param_count)
                 {
                        /* Note: Using FullName here as we are caching in a static hashtable */
-                        string key = FullName + MethodDef.CreateSignature (ret_type, meth_name, param, gen_param_count);
+                        string key = FullName + MethodDef.CreateSignature (ret_type, call_conv, meth_name, param, gen_param_count, true);
                         TypeSpecMethodRef mr = s_method_table [key] as TypeSpecMethodRef;
                         if (mr == null) {         
                                 mr = new TypeSpecMethodRef (this, call_conv, ret_type, meth_name, param, gen_param_count);