Skip to content

Commit 8dff0c6

Browse files
committed
Merge pull request #1203 from lampepfl/DarkDimius-patch-5
Two fixes to TermRefWithSignature.newLikeThis
2 parents 4ca4fa1 + 7c72b0c commit 8dff0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ object Types {
17431743
if (symbol.exists && !candidate.symbol.exists) { // recompute from previous symbol
17441744
val ownSym = symbol
17451745
val newd = asMemberOf(prefix)
1746-
candidate.withDenot(asMemberOf(prefix).suchThat(_ eq ownSym))
1746+
candidate.withDenot(newd.suchThat(_.signature == ownSym.signature))
17471747
}
17481748
else candidate
17491749
}

0 commit comments

Comments
 (0)