2008-11-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / literal.cs
index 77a8832036946b54ccc16c86ed652b6eb23c8ee8..73327bea299e8ed1d6da993a55e7f656f2a0816d 100644 (file)
@@ -93,6 +93,9 @@ namespace Mono.CSharp {
                        if (TypeManager.IsReferenceType (targetType))
                                return new EmptyConstantCast (this, targetType);
 
+                       if (TypeManager.IsNullableType (targetType))
+                               return new EmptyConstantCast (this, targetType);
+
                        return null;
                }