[Mono-bugs] [Bug 59529][Nor] New - Global const definitions compile when they shouldn't
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 3 Jun 2004 01:26:27 -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 michi@zeroc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59529
--- shadow/59529 2004-06-03 01:26:27.000000000 -0400
+++ shadow/59529.tmp.5625 2004-06-03 01:26:27.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 59529
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: michi@zeroc.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Global const definitions compile when they shouldn't
+
+mcs compiles the following without error:
+
+const int i = 5;
+
+Note that the definition is at global scope, and therefore illegal,
+because constants can only be defined at namespace or class scope.
+
+Cheers,
+
+Michi.