Skip to content

Record anonymous child classes for exhaustivity check #5396

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 1 commit into from
Nov 9, 2018

Conversation

liufengyun
Copy link
Contributor

Record anonymous child classes for exhaustivity check

@liufengyun
Copy link
Contributor Author

@nicolasstucki could you please give some help with the decompile failure in CI? I run the following on my local machine:

sbt > dotc -Ythrough-tasty -Ycheck:all tests/pos/t8324.scala

It works without any problem.

@nicolasstucki
Copy link
Contributor

I will have a look

@nicolasstucki
Copy link
Contributor

@liufengyun the issue was not a fromtasty compilation one. It was about recompiling decompiled code. I remove it from the whitelist. Now it should work.

@nicolasstucki
Copy link
Contributor

@liufengyun you still have a pickling test failing (t8611b)

@liufengyun
Copy link
Contributor Author

Thanks a lot @nicolasstucki for the fix.

If a sealed class A has local or anonymous classes, add the
annotation `Child(A)` to `A`. With this simple change, the
exhaustivity check works without any modification.
@liufengyun liufengyun merged commit b261160 into scala:master Nov 9, 2018
@liufengyun liufengyun deleted the check-anonym branch November 9, 2018 08:45
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.

3 participants