Explorar o código

test for emitting null nullable type

svn path=/trunk/mcs/; revision=101994
Jb Evain %!s(int64=17) %!d(string=hai) anos
pai
achega
a36b45ad5c

+ 9 - 0
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Constant.cs

@@ -217,5 +217,14 @@ namespace MonoTests.System.Linq.Expressions
 
 			Assert.IsNull (n ());
 		}
+
+		[Test]
+		public void EmitNullNullableType ()
+		{
+			var n = Expression.Lambda<Func<int?>> (
+				Expression.Constant (null, typeof (int?))).Compile ();
+
+			Assert.IsNull (n ());
+		}
 	}
 }