Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue 7455 #7483

Merged
merged 2 commits into from
Jul 5, 2022
Merged

Fix for issue 7455 #7483

merged 2 commits into from
Jul 5, 2022

Conversation

anthony-c-martin
Copy link
Member

@anthony-c-martin anthony-c-martin commented Jul 5, 2022

This was a bug I introduced with #7083.

In order to support better type validation for a lambda inside a parenthesized expression, I added logic to calculate the child declared type based on the parent declared type (e.g. so the declared type of the lambda in map([123], (i => i)) can be evaluated). Elsewhere the parent declared type is calculated based on child declared type - so in the place where these two pieces of logic meet, we get a cycle. To fix I've removed the logic I put in so that declared type is always calculated in a consistent direction.

Closes #7455

Microsoft Reviewers: Open in CodeFlow

@anthony-c-martin anthony-c-martin enabled auto-merge (squash) July 5, 2022 16:50
@anthony-c-martin anthony-c-martin merged commit 45dca94 into main Jul 5, 2022
@anthony-c-martin anthony-c-martin deleted the ant/7455 branch July 5, 2022 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessing properties of ternary operator result causes InsufficientExecutionStackException
2 participants