* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / ilasm / codegen / GlobalFieldRef.cs
index 55730cc9ce9d82968f9d1e61a11af5b5cd5689aa..2ab31a5834dddd0096d2c33183bc8c7f78c7e4f2 100644 (file)
@@ -15,13 +15,13 @@ namespace Mono.ILASM {
 
         public class GlobalFieldRef : IFieldRef {
 
-                private ITypeRef ret_type;
+                private BaseTypeRef ret_type;
                 private string name;
 
                 private PEAPI.Field peapi_field;
                private bool is_resolved;
 
-                public GlobalFieldRef (ITypeRef ret_type, string name)
+                public GlobalFieldRef (BaseTypeRef ret_type, string name)
                 {
                         this.ret_type = ret_type;
                         this.name = name;
@@ -38,7 +38,7 @@ namespace Mono.ILASM {
                        if (is_resolved)
                                return;
 
-                        peapi_field = code_gen.ResolveField (name);
+                        peapi_field = code_gen.ResolveField (name, ret_type.FullName);
 
                        is_resolved = true;
                 }