Skip to content

Commit

Permalink
some more things around #347
Browse files Browse the repository at this point in the history
  • Loading branch information
dadhi committed Oct 3, 2022
1 parent d64a613 commit 5f575ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/FastExpressionCompiler/FastExpressionCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2600,7 +2600,7 @@ public static bool TryEmitParameter(ParameterExpression paramExpr, IReadOnlyList
if (paramType.IsValueType)
{
il.Emit(OpCodes.Unbox_Any, paramType);
EmitStoreAndLoadLocalVariableAddress(il, paramType);
EmitStoreAndLoadLocalVariableAddress(il, paramType); // fixes #347
}

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public class Issue347_InvalidProgramException_on_compiling_an_expression_that_re
{
public int Run()
{
// Test_passing_struct_item_in_object_array_parameter();
// Test_struct_parameter_in_closure_of_the_nested_lambda();
// Test_nullable_param_in_closure_of_the_nested_lambda();
// Test_nullable_of_struct_and_struct_field_in_the_nested_lambda();
Test_passing_struct_item_in_object_array_parameter();
Test_struct_parameter_in_closure_of_the_nested_lambda();
Test_nullable_param_in_closure_of_the_nested_lambda();
Test_nullable_of_struct_and_struct_field_in_the_nested_lambda();
Test_original();
return 5;
}
Expand Down

0 comments on commit 5f575ea

Please sign in to comment.