Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 79424bb

Browse files
committed
Added a test
1 parent ebac6f5 commit 79424bb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/System.Linq.Expressions/tests/SequenceTests/SequenceTests.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,27 @@ public static void ObjectSwitch1()
38703870
Assert.Equal("null", f(null));
38713871
}
38723872

3873+
static class System_Linq_Expressions_Expression_TDelegate__1
3874+
{
3875+
public static T Default<T>() { return default(T); }
3876+
public static void UseSystem_Linq_Expressions_Expression_TDelegate__1(bool call) // call this passing false
3877+
{
3878+
if (call)
3879+
{
3880+
Default<System.Linq.Expressions.Expression<System.Object>>().Compile();
3881+
Default<System.Linq.Expressions.Expression<System.Object>>().Update(
3882+
Default<System.Linq.Expressions.Expression>(),
3883+
Default<System.Collections.Generic.IEnumerable<System.Linq.Expressions.ParameterExpression>>());
3884+
}
3885+
}
3886+
}
3887+
3888+
[Fact]
3889+
public static void ExprT_Update()
3890+
{
3891+
System_Linq_Expressions_Expression_TDelegate__1.UseSystem_Linq_Expressions_Expression_TDelegate__1(false);
3892+
}
3893+
38733894
public class TestComparers
38743895
{
38753896
public static bool CaseInsensitiveStringCompare(string s1, string s2)

0 commit comments

Comments
 (0)