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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 [EMAIL PROTECTED] 2006-06-13 09:35 ------- +Also, this blocks recent IronPython snapshots from compiling on mono. + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
