This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/System.Linq.Expressions/tests/SequenceTests Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -3870,6 +3870,27 @@ public static void ObjectSwitch1()
3870
3870
Assert . Equal ( "null" , f ( null ) ) ;
3871
3871
}
3872
3872
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
+
3873
3894
public class TestComparers
3874
3895
{
3875
3896
public static bool CaseInsensitiveStringCompare ( string s1 , string s2 )
You can’t perform that action at this time.
0 commit comments