[Mono-bugs] [Bug 22506] New - Strings not handled in constant table
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
26 Mar 2002 06:48:00 -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 ndrochak@gol.com.
http://bugzilla.ximian.com/show_bug.cgi?id=22506
--- shadow/22506 Tue Mar 26 01:48:00 2002
+++ shadow/22506.tmp.17244 Tue Mar 26 01:48:00 2002
@@ -0,0 +1,37 @@
+Bug#: 22506
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ndrochak@gol.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Strings not handled in constant table
+
+A class with const string members causes a warning in both mint and mono.
+
+Here's a simple test (it returns 0 ok, but gives a warning):
+//---------------------------------------------------
+using System;
+
+namespace NS {
+ class C {
+ private const string MyString1 = "42";
+ }
+
+ public class M {
+ public static int Main() {
+ C _c = new C();
+ return 0;
+ }
+ }
+}
+//---------------------------------------------------