Bugzilla – Bug 321356
[GMCS] Switch on nullable types
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by sanxiyn@gmail.com 2006-06-13 07:38:03 MST ---- 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@gmail.com 2006-06-13 09:35:49 MST ---- Also, this blocks recent IronPython snapshots from compiling on mono. ---- Additional Comments From martin@ximian.com 2006-06-15 18:32:54 MST ---- Fixed in SVN. Unknown operating system unknown. Setting to default OS "Other".