[Mono-bugs] [Bug 69722][Nor] New - mcs compiler bug with embedded classes
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 19 Nov 2004 17:21: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 joe@otee.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=69722
--- shadow/69722 2004-11-19 17:21:49.000000000 -0500
+++ shadow/69722.tmp.4005 2004-11-19 17:21:49.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 69722
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: macosx 10.3.5
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: joe@otee.dk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs compiler bug with embedded classes
+
+(using mcs 1.0.2)
+
+mcs bug.cs successfully compiles the following file but it should report a compile error because
+it is not allowed to call SomeFunction from inside the Embedded class.
+---
+
+public class SuperTest
+{
+ public void SomeFunction () { }
+};
+
+public class Test : SuperTest
+{
+ public class Embedded
+ {
+ void DoSomething ()
+ {
+ SomeFunction ();
+ }
+ };
+
+ static void Main ()
+ {}
+};