* literal.cs: Emit correctly explicit null to nullable cast.
svn path=/trunk/mcs/; revision=120241
+2008-11-28 Marek Safar <marek.safar@gmail.com>
+
+ * literal.cs: Emit correctly explicit null to nullable cast.
+
2008-11-28 Marek Safar <marek.safar@gmail.com>
* ecore.cs, generics.cs: Fixed crash when type arguments fail to
return new EmptyConstantCast (this, targetType);
if (TypeManager.IsNullableType (targetType))
- return new EmptyConstantCast (this, targetType);
+ return Nullable.LiftedNull.Create (targetType, loc);
return null;
}