Bugzilla – Bug 320511
[GMCS] missing nullable conversion
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by vargaz@gmail.com 2006-03-09 16:45:42 MST ---- This test case: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< using System; public class Tests { public static void Main () { int? dummy = null; Console.WriteLine ("Hello: " + dummy); } } >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Causes gmcs to fail with: bug.cs(9,22): error CS0453: The type `string' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>'. Compilation failed: 1 error(s), 0 warnings while CSC compiles it fine. ---- Additional Comments From martin@ximian.com 2006-03-16 12:31:07 MST ---- Fixed in SVN. Unknown operating system unknown. Setting to default OS "Other".