Skip to content

Fix #7597: Refine checks whether a deferred term member is implemented #8332

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
Feb 22, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 17, 2020

The check for a concrete class used to be simply that its abstractTermMembers
are empty. However, i7597.scala shows that this is not enough. The problem is
that abstractTermMembers is based on signatures. It will not include a member
as long as there is a concrete member with the same signature.

But as #7597 shows it's possible for a concrete member to have the same signature
as an abstract one but still not have a matching type.

…mented

The check for a concrete class used to be simply that its `abstractTermMembers`
are empty. However, i7597.scala shows that this is not enough. The problem is
that abstractTermMembers is based on signatures. It will not include a member
as long as there is a concrete member with the same signature.

But as scala#7597 shows it's possible for a concrete member to have the same signature
as an abstract one but still not have a matching type.
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

LGTM

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