Skip to content
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

Avoid EmptyScope.cloneScope crashing, eg on missing references #16314

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Nov 10, 2022

No description provided.

@dwijnand dwijnand linked an issue Nov 10, 2022 that may be closed by this pull request
@dwijnand dwijnand marked this pull request as ready for review November 14, 2022 10:07
@dwijnand
Copy link
Member Author

I tested this manually with scalac -classpath shapeless.jar i15726.scala and didn't look to a test setup for that.

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

If you want to test this change, you could add an sbt scripted test in https://github.com/lampepfl/dotty/tree/main/sbt-test/scala2-compat

@smarter smarter assigned dwijnand and unassigned smarter Nov 14, 2022
@dwijnand dwijnand changed the title Avoid crashing in ExplicitOuter on missing references Avoid EmptyScope.cloneScope crashing, eg on missing references Nov 17, 2022
@dwijnand
Copy link
Member Author

If you want to test this change, you could add an sbt scripted test in main/sbt-test/scala2-compat

I tried, but there's no way to distinguishing a clear compilation error from a compilation crash. -> app/compile will pass with or without the fix.

@dwijnand dwijnand assigned smarter and unassigned dwijnand Nov 17, 2022
@dwijnand dwijnand enabled auto-merge November 18, 2022 09:11
@dwijnand dwijnand merged commit e09175e into scala:main Nov 18, 2022
@dwijnand dwijnand deleted the shapeless-crash branch December 1, 2022 12:40
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.

UnsupportedOperationException: cloneScope
2 participants