Skip to content

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