[Mono-bugs] [Bug 78630][Maj] New - [GMCS] Switch on nullable types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jun 13 12:02:12 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 miguel at ximian.com.

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

--- shadow/78630	2006-06-13 12:02:12.000000000 -0400
+++ shadow/78630.tmp.12639	2006-06-13 12:02:12.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 78630
+Product: Mono: Compilers
+Version: 1.1
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Major
+Component: C#
+AssignedTo: martin at ximian.com                            
+ReportedBy: sanxiyn at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Switch on nullable types
+
+Steps to reproduce the problem:
+
+public class test {
+    public static void Main(string[] args) {
+        int? a = 0;
+        switch (a) {
+            case 0:
+                System.Console.WriteLine("0");
+                break;
+        }
+    }
+}
+
+Actual Results:
+
+test.cs(4,9): error CS0151: A value of an integral type or string expected
+for switch
+
+Expected Results:
+
+It should compile it fine. (csc does.)
+
+------- Additional Comments From vargaz at gmail.com  2006-06-13 09:35 -------
+Also, this blocks recent IronPython snapshots from compiling on mono.
+


More information about the mono-bugs mailing list