[Mono-bugs] [Bug 22719] New - Error in accessing class members from nested classes

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Mar 2002 21:32:06 -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 duco@lorentz.xs4all.nl.

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

--- shadow/22719	Thu Mar 28 16:32:06 2002
+++ shadow/22719.tmp.5262	Thu Mar 28 16:32:06 2002
@@ -0,0 +1,49 @@
+Bug#: 22719
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: SuSE Linux 7.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duco@lorentz.xs4all.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error in accessing class members from nested classes
+
+Description of Problem:
+Error in accessing class members from nested classes
+
+Steps to reproduce the problem:
+class Outer
+{
+        public static void F () { System.Console.WriteLine("Outer.F"); }
+
+        class Inner
+        {
+                public static void G()
+                {
+                        F ();
+                }
+        }
+
+        public static void Main ()
+        {
+                Inner.G();
+        }
+}
+ 
+Actual Results:
+error CS103: The name `F' could not be found in `Outer.Inner'
+
+Expected Results:
+This should compile fine. Access to class members from nested classes
+should be possible without further namespace qualification
+
+How often does this happen? 
+Always