[Mono-bugs] [Bug 51095][Nor] New - Parsing error in the presence of casts

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 18 Nov 2003 00:11:55 -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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=51095

--- shadow/51095	2003-11-18 00:11:55.000000000 -0500
+++ shadow/51095.tmp.15725	2003-11-18 00:11:55.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 51095
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Parsing error in the presence of casts
+
+The following fails to parse:
+
+public class FormsTest
+{
+    enum ColorDepth { a, b }
+
+    static void Main ()
+    {
+        object a = (ColorDepth) int.Parse("1");
+    }
+}