Skip to content

Fix duplicate nested lambda compilation #368

@dadhi

Description

@dadhi

We should avoid both Collect and Compile round for the same lambda expression,
but currently it is not working as intended.

It happens for sure in the test:

  • Nested_lambdas_assigned_to_vars

and in others:

  • NestedLambdasSharedToExpressionCodeStringTest
  • NestedLambdaTests.Given_composed_expr_with_closure_over_2_parameters_used_in_2_levels_of_nested_lambda
  • NestedLambdaTests.Given_composed_expr_with_closure_over_2_same_parameters_used_in_2_levels_of_nested_lambda

Add the diagnostics about number of nested lambdas and number of compilations to IDelegateDebugInfo

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions