Skip to content

Standardize on log-based undo #23357

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 12, 2025

Drop the snapshot scheme in VarState. The previous scheme did leak instantiations from failed subtype comparisons, since a subtype comparison might have several subCaptures tests. If a first subCaptures test succeeds then anything it instantiated is made permanent, even if a subsequent test and the whole subType comparison fails.

The change needed updates in several neg test files where we find that fewer things are instantiated in error messages.

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.

2 participants