Skip to content

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