[Mono-bugs] [Bug 59342][Min] New - mcs doesn't catch using statements after namespace elements
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 31 May 2004 07:14:48 -0400 (EDT)
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 vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59342
--- shadow/59342 2004-05-31 07:14:48.000000000 -0400
+++ shadow/59342.tmp.12711 2004-05-31 07:14:48.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 59342
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vladimir@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs doesn't catch using statements after namespace elements
+
+Given something like:
+
+== n.cs ==
+namespace Foo {
+ public class Bar {
+ }
+}
+
+using Baz = Foo.Bar;
+
+public class Frob {
+ public static void Main () { }
+}
+== end ==
+
+mcs doesn't complain, csc complains with:
+
+ns1.cs(13,1): error CS1529: A using clause must precede all other namespace
+elements