[Mono-bugs] [Bug 78998][Nor] New - [GMCS] CS0060 is not reported for generic base type with less accessible type argument
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Aug 2 15:03:59 EDT 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=78998
--- shadow/78998 2006-08-02 15:03:59.000000000 -0400
+++ shadow/78998.tmp.31683 2006-08-02 15:03:59.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 78998
+Product: Mono: Compilers
+Version: 1.1
+OS:
+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: [GMCS] CS0060 is not reported for generic base type with less accessible type argument
+
+gmcs does not report CS0060 for the following code snippet (compiled
+using gmcs /target:library test.cs):
+
+public class Foo<K> {
+}
+
+public class Bar : Foo<Bar.Baz> {
+ private class Baz {
+ }
+}
+
+Expected result:
+
+test.cs(4,14): error CS0060: Inconsistent accessibility: base class
+ 'Foo<Bar.Baz>' is less accessible than class 'Bar'
+
+Actual result:
+
+No errors.
+
+=====
+
+same goes for:
+
+public class Foo<K> {
+}
+
+public class Bar : Foo<Baz> {
+}
+
+internal class Baz {
+}
+
+Expected result:
+
+test.cs(4,14): error CS0060: Inconsistent accessibility: base class
+ 'Foo<Baz>' is less accessible than class 'Bar'
+
+Actual result:
+
+No errors.
More information about the mono-bugs
mailing list