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

Fix #13418: support AppliedType in outerTestNeeded #13420

Merged
merged 1 commit into from Oct 2, 2021

Conversation

Jasper-M
Copy link
Member

Fixes #13418

// generates an outer test based on `patType.prefix` with automatically dealises.
expectedTp.dealias match {
def outerTestNeeded: Boolean = {
def go(expected: Type): Boolean = expected match {
Copy link
Member

Choose a reason for hiding this comment

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

Might neeed to dealias here too if the constructor is an alias.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I added a test for that now.

@odersky odersky merged commit 8c3e7a2 into scala:master Oct 2, 2021
@Kordyjan Kordyjan added this to the 3.1.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.

Type test of polymorphic inner class does not check outer reference
4 participants