提交 b076b694 编写于 作者: J Jon Hanna

Test TypeAs expression is always not lifted.


Commit migrated from https://github.com/dotnet/corefx/commit/76fbb895c4e350566fabbe29ec316ab8d2aced8e
上级 cf72108a
......@@ -10,6 +10,13 @@ namespace System.Linq.Expressions.Tests
{
public static class AsNullableTests
{
[Fact]
public static void NotLiftedEvenOnNullableOperandOrType()
{
Assert.False(Expression.TypeAs(Expression.Constant(E.A, typeof(E?)), typeof(E?)).IsLifted);
Assert.False(Expression.TypeAs(Expression.Constant(E.A, typeof(E?)), typeof(Enum)).IsLifted);
}
#region Test methods
[Theory, ClassData(typeof(CompilationTypes))]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册