2002-08-28 Martin Baulig <martin@gnome.org>
authorMartin Baulig <martin@novell.com>
Wed, 28 Aug 2002 02:27:19 +0000 (02:27 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 28 Aug 2002 02:27:19 +0000 (02:27 -0000)
* expression.cs (Binary.ResolveOperator): Don't silently return
but return an error if an operator cannot be applied between two
enum types.

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

mcs/mcs/ChangeLog
mcs/mcs/expression.cs

index 8e28cd12a8fb4c442a4c5168c9ad8302dbc15ad9..ede13c9bb13601bd9da06eff11301f226d442d85 100755 (executable)
@@ -1,3 +1,9 @@
+2002-08-28  Martin Baulig  <martin@gnome.org>
+
+       * expression.cs (Binary.ResolveOperator): Don't silently return
+       but return an error if an operator cannot be applied between two
+       enum types.
+
 2002-08-28  Martin Baulig  <martin@gnome.org>
 
        * class.cs (Constructor.Define): Set the permission attributes
index 8f548c2c3530cea79e4f3e385cc42c66ecf139fa..f19068bd8c288be45d1a9d2477a779d3645d9c91 100755 (executable)
@@ -2151,6 +2151,7 @@ namespace Mono.CSharp {
                                        type = l;
                                        return this;
                                }
+                               Error_OperatorCannotBeApplied ();
                                return null;
                        }