2002-06-27 Martin Baulig <martin@gnome.org>
authorMartin Baulig <martin@novell.com>
Wed, 26 Jun 2002 18:56:27 +0000 (18:56 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 26 Jun 2002 18:56:27 +0000 (18:56 -0000)
* ecore.cs (Expression.SimpleNameResolve): If the expression is a
non-static PropertyExpr, set its InstanceExpression.  This makes
the `ICollection.Count' property work in System/Array.cs.

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

mcs/mcs/ChangeLog
mcs/mcs/ecore.cs

index 28ed655e20bde68c1d47204b5d403aa28f120017..ebf45efede77196be8e10225c4f93ed82f9f90dc 100755 (executable)
@@ -1,3 +1,10 @@
+2002-06-27  Martin Baulig  <martin@gnome.org>
+
+       * ecore.cs (Expression.ImplicitReferenceConversionExists): Use
+       `target_type == TypeManager.array_type', not IsAssignableFrom() in
+       the "from an array-type to System.Array" case.  This makes it work
+       when compiling corlib.
+
 2002-06-27  Martin Baulig  <martin@gnome.org>
 
        * ecore.cs (Expression.SimpleNameResolve): If the expression is a
index 96d921aae922d29ee4623e204fa1a54978363ab0..661e3e30c5a97f6e52297e4eeb3b4f3568e6c6c3 100755 (executable)
@@ -797,7 +797,7 @@ namespace Mono.CSharp {
                                }
                                
                                // from an array-type to System.Array
-                               if (expr_type.IsArray && target_type.IsAssignableFrom (expr_type))
+                               if (expr_type.IsArray && (target_type == TypeManager.array_type))
                                        return true;
                                
                                // from any delegate type to System.Delegate