[Mono-bugs] [Bug 52547][Nor] New - Type.IsNotPublic not correct for Nested types

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Dec 2003 14:36:45 -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=52547

--- shadow/52547	2003-12-24 14:36:45.000000000 -0500
+++ shadow/52547.tmp.23635	2003-12-24 14:36:45.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 52547
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: bmaurer@users.sf.net                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type.IsNotPublic not correct for Nested types
+
+On the MS runtime, this code prints False False, on Mono True True
+
+public class T
+{
+	static void Main ()
+	{
+		System.Console.WriteLine (typeof (C).IsNotPublic);
+		System.Console.WriteLine (typeof (D).IsNotPublic);
+	}
+	private class D {}
+	protected class C {}
+}