New test.
[mono.git] / mcs / ilasm / codegen / GenericMethodRef.cs
index 831117c5f5b3c1aaa5d67a78ac359409afdfd972..81255f1433b2dc669f67a05d4db4cf1700357784 100644 (file)
@@ -12,39 +12,31 @@ using System;
 
 namespace Mono.ILASM {
 
-        public class GenericMethodRef : IMethodRef {
+        public class GenericMethodRef : BaseMethodRef {
 
-                private IMethodRef meth;
+                private BaseMethodRef meth;
                 private GenericMethodSig sig;
-                private bool is_resolved;
 
-                public GenericMethodRef (IMethodRef meth, GenericMethodSig sig)
+                public GenericMethodRef (BaseMethodRef meth, GenericMethodSig sig)
+                        : base (null, meth.CallConv, null, "", null, 0)
                 {
                         this.meth = meth;
                         this.sig = sig;
                         is_resolved = false;
                 }
 
-                public PEAPI.Method PeapiMethod {
-                        get { return meth.PeapiMethod; }
-                }
-
-                public PEAPI.CallConv CallConv {
+                public override PEAPI.CallConv CallConv {
                         get { return meth.CallConv; }
                         set { meth.CallConv = value; }
                 }
 
-               public ITypeRef Owner {
-                       get { return null; }
-               }
-
-                public void Resolve (CodeGen code_gen)
+                public override void Resolve (CodeGen code_gen)
                 {
                         if (is_resolved)
                                 return;
 
                         meth.Resolve (code_gen);
-                        code_gen.PEFile.AddMethodSpec (meth.PeapiMethod, sig.Resolve (code_gen));
+                        peapi_method = code_gen.PEFile.AddMethodSpec (meth.PeapiMethod, sig.Resolve (code_gen));
 
                         is_resolved = true;
                 }