[Mono-bugs] [Bug 77750][Nor] New - [GMCS] missing nullable conversion

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 9 16:45:43 EST 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 vargaz at gmail.com.

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

--- shadow/77750	2006-03-09 16:45:42.000000000 -0500
+++ shadow/77750.tmp.4426	2006-03-09 16:45:42.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 77750
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: vargaz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] missing nullable conversion
+
+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.


More information about the mono-bugs mailing list