Skip to content

Fix #1905: Duplicate bridge #1906

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

Closed
wants to merge 3 commits into from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 16, 2017

The problem with #1905 was that we checked "new" overriding relationships
at phase erasure + 1. This is wrong when we have ErasedValueTypes because
these do not compare correctly with their underlying type. So we get spurious
mismatches which force in turn spurious bridge generation. The fix is to
compute newly overridden symbols at phase elimErasedValueTypes + 1, i.e. one
phase later.

The problem with scala#1905 was that we checked "new" overriding relationships
are phase erasure + 1. This is wrong when we have ErasedValueTypes because
these do not compare correctly ith their underlying type. So we get spurious
mismatches which force in turn spurious bridge generation. The fix is to
compute newly overridden symbols at phase elimErasedValueTypes + 1, i.e. one
phase later.
@DarkDimius
Copy link
Contributor

@odersky, please see my comments in #1905 - those errors aren't spurious.

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