2004-01-13 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Wed, 14 Jan 2004 02:07:20 +0000 (02:07 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Wed, 14 Jan 2004 02:07:20 +0000 (02:07 -0000)
* VariableDeclaration.cs: get the this.type which is a Type not a TypeBuilder.

svn path=/trunk/mcs/; revision=22047

mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
mcs/class/Microsoft.JScript/Microsoft.JScript/VariableDeclaration.cs

index edf61d01f11478d7512a888da74e5ab4539321e7..50858ec7252527b4ba5b83bc334d0a9ad94ed4e8 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-13  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
+
+       * VariableDeclaration.cs: get the this.type which is a Type not a TypeBuilder.
+
 2004-01-12  Atsushi Enomoto  <atsushi@ximian.com>
 
        * JSMethodInfo.cs : tiny fix for NET_1_2 build.
index 457f00dee0e78d6c1e0e4ef56e631a35c03378a7..5a6304535eafb3a9970bcd13e22ee121bd424d98 100644 (file)
@@ -61,7 +61,7 @@ namespace Microsoft.JScript {
                                FieldBuilder field;
                                TypeBuilder type  = ec.type_builder;
                                
-                               field = type.DefineField (id, type,
+                               field = type.DefineField (id, this.type,
                                                          FieldAttributes.Public |
                                                          FieldAttributes.Static);
                                
@@ -85,7 +85,6 @@ namespace Microsoft.JScript {
                internal override bool Resolve (IdentificationTable context)
                {
                        context.Enter (id, this);
-                       Console.WriteLine ("VariableDeclaration::Resolve");
                        return true;
                }
        }