[Mono-bugs] [Bug 80338][Nor] New - CS0053 error is not reported for inconsistent accessibility

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 21 16:22:28 EST 2006


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 gert.driesen at pandora.be.

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

--- shadow/80338	2006-12-21 16:22:28.000000000 -0500
+++ shadow/80338.tmp.13077	2006-12-21 16:22:28.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80338
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS0053 error is not reported for inconsistent accessibility
+
+mcs (and gmcs) do not report CS0053 for the following code fragment:
+
+namespace MonoTests.System.ComponentModel
+{
+  public class PropertyDescriptorTests
+  {
+    class MissingConverterType_test
+    {
+      class NestedClass { }
+
+      public NestedClass Prop {
+        get { return null; }
+      }
+    }
+  }
+}
+
+Actual result:
+
+Successful compilation.
+
+Expected result:
+
+test.cs(9,23): error CS0053: Inconsistent accessibility: property type
+        'MonoTests.System.ComponentModel.PropertyDescriptorTests.MissingCo
+nverterType_test.NestedClass' is less accessible than property
+        'MonoTests.System.ComponentModel.PropertyDescriptorTests.MissingCo
+nverterType_test.Prop'


More information about the mono-bugs mailing list