[Mono-list] PATCH: Unary.ResolveOperator

Rachel Hestilow hestilow@ximian.com
14 Jun 2002 23:58:16 -0500


--=-BSKQ2NyQEyc3wo1VrVID
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Unary contains old type lookup code instead of using TypeManager; this
breaks the Gtk# build. May I commit?



--=-BSKQ2NyQEyc3wo1VrVID
Content-Disposition: inline; filename=expr.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; name=expr.diff; charset=ISO-8859-1

Index: ChangeLog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/public/mcs/mcs/ChangeLog,v
retrieving revision 1.509
diff -u -r1.509 ChangeLog
--- ChangeLog	13 Jun 2002 13:09:18 -0000	1.509
+++ ChangeLog	15 Jun 2002 01:12:12 -0000
@@ -1,3 +1,8 @@
+2002-06-14  Rachel Hestilow  <hestilow@ximian.com>
+
+	* expression.cs (Unary.ResolveOperator): Use TypeManager
+	to resolve the type.
+=09
 2002-06-13  Ravi Pratap  <ravi@ximian.com>
=20
 	* cs-parser.jay (enum_member_declaration): Pass in the attributes
Index: expression.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/public/mcs/mcs/expression.cs,v
retrieving revision 1.276
diff -u -r1.276 expression.cs
--- expression.cs	13 Jun 2002 00:16:03 -0000	1.276
+++ expression.cs	15 Jun 2002 01:12:16 -0000
@@ -428,15 +428,8 @@
 					return null;
 				}
 			=09
-				//
-				// This construct is needed because dynamic types
-				// are not known by Type.GetType, so we have to try then to use
-				// ModuleBuilder.GetType.
-				//
 				string ptr_type_name =3D Expr.Type.FullName + "*";
-				type =3D Type.GetType (ptr_type_name);
-				if (type =3D=3D null)
-					type =3D CodeGen.ModuleBuilder.GetType (ptr_type_name);
+				type =3D TypeManager.LookupType (ptr_type_name);
 			=09
 				return this;
 			}

--=-BSKQ2NyQEyc3wo1VrVID--