Skip to content

Don't let caseLambda bindings accumulate in constraint #12320

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

Merged
merged 3 commits into from
May 5, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 4, 2021

Remove them when a matchCases has finished.

Fixes #9107

@odersky odersky force-pushed the fix-matchtype-gc branch from cb7fe9b to 39a07c4 Compare May 4, 2021 10:52
@odersky
Copy link
Contributor Author

odersky commented May 4, 2021

test performance please

@dottybot
Copy link
Member

dottybot commented May 4, 2021

performance test scheduled: 1 job(s) in queue, 1 running.

@odersky odersky force-pushed the fix-matchtype-gc branch from 39a07c4 to 17fb2b6 Compare May 4, 2021 13:39
@odersky
Copy link
Contributor Author

odersky commented May 4, 2021

@OlivierBlanvillain Test 6697 started failing. But arguably the error is correct. So it was wrong before. Do you agree?

@dottybot
Copy link
Member

dottybot commented May 4, 2021

Performance test finished successfully:

Visit https://dotty-bench.epfl.ch/12320/ to see the changes.

Benchmarks is based on merging with master (1440699)

Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a comment

Choose a reason for hiding this comment

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

Yes I agree. I think this PR is a duplicate of #9108, I've just pushed the extra test cases to this branch to see if they also pass here.

@odersky
Copy link
Contributor Author

odersky commented May 4, 2021

Yes, I see now this is a duplicate of #9108. I notice that 9890.scala fails in both PRs, so that test should be removed.

@odersky odersky force-pushed the fix-matchtype-gc branch from eef7be9 to 80f15c3 Compare May 4, 2021 19:32
@odersky odersky merged commit 6c81a74 into scala:master May 5, 2021
@odersky odersky deleted the fix-matchtype-gc branch May 5, 2021 07:32
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
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.

Match type subtyping wrongly instantiates types in patterns
4 participants