[Mono-bugs] [Bug 35856][Min] Changed - Missing `Inconsistent accessibility' warning

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
18 Dec 2002 18:24:50 -0000


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 martin@ximian.com.

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

--- shadow/35856	Wed Dec 18 13:24:26 2002
+++ shadow/35856.tmp.32697	Wed Dec 18 13:24:50 2002
@@ -118,6 +118,26 @@
         public static void Main () {
         }
 }
 
 ------- Additional Comments From martin@ximian.com  2002-12-18 13:24 -------
 *** Bug 34840 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From martin@ximian.com  2002-12-18 13:24 -------
+/ cs0056.cs: Incompatible accessibility. Operator return type is less
+accessible than operator.
+// Line: 10
+
+using System;
+
+class ErrorCS0056 {
+}
+
+class Foo {
+        public static implicit operator ErrorCS0056(Foo foo) {
+                return new ErrorCS0056 ();
+        }
+        public static void Main () {
+        }
+}
+
+