[Mono-bugs] [Bug 78940][Cos] Changed - Improve error message given when non-declaration statements are found at class scope
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jul 26 07:45:55 EDT 2006
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 kornelpal at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78940
--- shadow/78940 2006-07-26 07:05:05.000000000 -0400
+++ shadow/78940.tmp.27272 2006-07-26 07:45:55.000000000 -0400
@@ -31,6 +31,13 @@
code sample that gets compile error
------- Additional Comments From rharinath at novell.com 2006-07-26 07:05 -------
The attached code has executable code embedded in class scope. Yep,
it would be preferable if the error message was better.
+
+------- Additional Comments From kornelpal at gmail.com 2006-07-26 07:45 -------
+For Matt: This code should not compile at all because it isn't valid
+C# code. Neither MS CSC 2.0 nor gmcs compiles it.
+
+I attached a corrected source file that compiles and behaves as
+expected.
More information about the mono-bugs
mailing list