Skip to content

Commit 56d53a4

Browse files
committed
Fix double computation in TermRefWithSignature.newLikeThis
Used to compute `asMemberOf(prefix)` twice.
1 parent d1ffa3e commit 56d53a4

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(_ eq ownSym))
17471747
}
17481748
else candidate
17491749
}

0 commit comments

Comments
 (0)