projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2008-11-27 Marek Safar <marek.safar@gmail.com>
[mono.git]
/
mcs
/
mcs
/
literal.cs
diff --git
a/mcs/mcs/literal.cs
b/mcs/mcs/literal.cs
index 77a8832036946b54ccc16c86ed652b6eb23c8ee8..73327bea299e8ed1d6da993a55e7f656f2a0816d 100644
(file)
--- a/
mcs/mcs/literal.cs
+++ b/
mcs/mcs/literal.cs
@@
-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;
}