In gmcs:
[mono.git] / mcs / mcs / literal.cs
index 312e5c3fff7ab674b4ff4edff40b4bc92b0ff934..c7aae9204b0a775c51648643e8ade9d926fb42ca 100644 (file)
@@ -116,7 +116,7 @@ namespace Mono.CSharp {
 
                public override Constant Reduce(EmitContext ec, Type target_type)
                {
-                       if (target_type == TypeManager.string_type)
+                       if (!TypeManager.IsValueType (target_type))
                                return new NullCast (this, target_type);
 
                        return null;