Bug 320511 (MONO77750) - [GMCS] missing nullable conversion
Summary: [GMCS] missing nullable conversion
Status: RESOLVED FIXED
Alias: MONO77750
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-09 23:45 UTC by Forgotten User vxPDddArjq
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:50:59 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".