Skip to content

Add regression tests for #1593 #5291

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

Conversation

nicolasstucki
Copy link
Contributor

Add tests from the PR #1593. These tests currently pass and we could close that PR.

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.

It's good that these tests pass but the underlying issue is still here: we call "isRef AnyClass" in several places assuming this means that the type is Any, but it also returns true for refinements of Any. I think Martin's comments in that PR are correct and we should have a separate stricter version of isRef (with a different name) that we use everywhere we check "isRef AnyClass" or "isRef ObjectClass"

@nicolasstucki nicolasstucki merged commit 24331a9 into scala:master Oct 18, 2018
@nicolasstucki nicolasstucki deleted the add-regression-tests-#1593 branch October 18, 2018 20:18
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