Skip to content

Comments

[ty] continue and break statements outside loops are syntax errors#20944

Merged
AlexWaygood merged 1 commit intomainfrom
alex/break-outside-loop
Oct 17, 2025
Merged

[ty] continue and break statements outside loops are syntax errors#20944
AlexWaygood merged 1 commit intomainfrom
alex/break-outside-loop

Conversation

@AlexWaygood
Copy link
Member

Summary

Co-authored-by: Brent Westbrook [email protected]

Test Plan

Mdtest and snapshots

@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Oct 17, 2025
@github-actions
Copy link
Contributor

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice


fn in_loop_context(&self) -> bool {
true
self.current_scope_info().current_loop.is_some()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@AlexWaygood AlexWaygood enabled auto-merge (squash) October 17, 2025 17:13
@AlexWaygood AlexWaygood merged commit c7e2bfd into main Oct 17, 2025
41 checks passed
@AlexWaygood AlexWaygood deleted the alex/break-outside-loop branch October 17, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants