2009-03-23 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / constant.cs
index dd4b3e993701e9e1087a19e6c0145ec15d7eb22e..f141c8211105fc0be72f92192d4cf406b97669a7 100644 (file)
@@ -226,7 +226,7 @@ namespace Mono.CSharp {
                        if (type == Type)
                                return IsDefaultValue;
 
-                       return Type == TypeManager.null_type;
+                       return this is NullLiteral;
                }
 
                public abstract bool IsDefaultValue {