[Mono-bugs] [Bug 72811][Wis] New - incorrect(?) cs217

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Feb 2005 12:41:20 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by malekith@pld-linux.org.

http://bugzilla.ximian.com/show_bug.cgi?id=72811

--- shadow/72811	2005-02-21 12:41:20.000000000 -0500
+++ shadow/72811.tmp.21656	2005-02-21 12:41:20.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 72811
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: malekith@pld-linux.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: incorrect(?) cs217
+
+The following code does not compile with current svn:
+
+class A {
+  static public int operator & (A a, A b) { return 0; }
+}
+
+
+it reports error 217. csc compiles it fine.
+
+This is due to this commit:
+
+2005-02-21  Marek Safar  <marek.safar@seznam.cz>
+
+        * ecore.cs (PropertyExpr.DoResolve): Add error 214 report.
+
+        * class.cs (Operator.Define): Add error 217 report.
+
+I wonder, was it intentional?