[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:01 -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 10:51:44.000000000 -0500
+++ shadow/49704.tmp.21412	2003-12-24 11:49:01.000000000 -0500
@@ -80,6 +80,26 @@
 TypeContainer.DefineMembers (Mono.CSharp.TypeContainer)
         in (at /devel/mcs/mcs/rootcontext.cs:614)
 RootContext.PopulateTypes ()
         in (at /devel/mcs/mcs/driver.cs:1387) Driver.MainDriver (string[])
         in (at /devel/mcs/mcs/driver.cs:253) Driver.Main (string[])
 
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-24 11:49 -------
+Ok, this is very messy.
+
+We are treating scope in a linear sense. We have an enum:
+enum AccessLevel {
+	Public			= 0,
+	ProtectedInternal	= 1,
+	Internal		= 2,
+	Protected		= 3,
+	Private			= 4
+}
+
+We do:
+AccessLevel level = GetAccessLevel (flags);
+AccessLevel level2 = GetAccessLevel (parent, flags);
+
+return (int) level >= (int) level2;
+
+This is not correct in any sense.