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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
