[Mono-bugs] [Bug 49704][Nor] Changed - internal class invalidly allowed for protected method argument
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Dec 2003 11:49:49 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=49704
--- shadow/49704 2003-12-24 11:49:01.000000000 -0500
+++ shadow/49704.tmp.21445 2003-12-24 11:49:49.000000000 -0500
@@ -10,13 +10,12 @@
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: ginga@kit.hi-ho.ne.jp
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: internal class invalidly allowed for protected method argument
When an internal class appears as a parameter of a protected method, then
it should be reported as an error, but mcs does not complain about it.
For example, such class:
@@ -100,6 +99,27 @@
AccessLevel level = GetAccessLevel (flags);
AccessLevel level2 = GetAccessLevel (parent, flags);
return (int) level >= (int) level2;
This is not correct in any sense.
+
+------- Additional Comments From bmaurer@users.sf.net 2003-12-24 11:49 -------
+another test case:
+
+public class Parent {
+ static void Main () {}
+
+
+ protected class ProtectedClass
+ {
+ internal class ProtectedAndInternal {}
+ }
+
+
+ protected void Foo (ProtectedClass.ProtectedAndInternal bar)
+ {
+ }
+}
+
+
+See also, 10.5.2: Accessibility domains