Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Oct 9, 2025

[checker] Fix bug where recursive type could be inferred

The cycle check during inference had a bug where certain recursive definitions
could be inferred. This would lead to the checker eventually crashing when it
tried to realize a concrete type from the substitution map.

ex. [optional.none()].map(x, [?x, null, x])

@copybara-service copybara-service bot force-pushed the test_817287593 branch 2 times, most recently from 79bc97f to c422916 Compare October 9, 2025 19:34
The cycle check during inference had a bug where certain recursive definitions
could be inferred. This would lead to the checker eventually crashing when it
tried to realize a concrete type from the substitution map.

ex. `[optional.none()].map(x, [?x, null, x])`

PiperOrigin-RevId: 817307359
@copybara-service copybara-service bot merged commit 033986e into master Oct 9, 2025
@copybara-service copybara-service bot deleted the test_817287593 branch October 9, 2025 20:11
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.

1 participant