[Mono-bugs] [Bug 30241][Wis] New - Class-level access specifiers not being honored

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Sep 2002 15:06:47 -0000


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 jddst19@mac.com.

http://bugzilla.ximian.com/show_bug.cgi?id=30241

--- shadow/30241	Thu Sep 12 11:06:47 2002
+++ shadow/30241.tmp.24099	Thu Sep 12 11:06:47 2002
@@ -0,0 +1,35 @@
+Bug#: 30241
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jddst19@mac.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Class-level access specifiers not being honored
+
+Description of Problem:
+Non-public classes are visible outside of namespace _and_ 
+assembly.
+
+Steps to reproduce the problem:
+1. Create file (a.cs) with one namespace (NS1) containing one public 
+class (A) and one class (B) with unspecified access rights
+2. Create file (b.cs) with a different namespace (NS2) and a public 
+class (C) that uses (B).
+3. compile into one exe or compile a.cs into a.dll and reference it 
+when compiling b.cs into b.exe
+
+Actual Results:
+Successful compile
+
+Expected Results:
+Compile error about class not being in scope.