Skip to content

Commit e1cc065

Browse files
Drop using owner score as fallback over type score
since it was under the case matching ownerScore to 0
1 parent 36a74b0 commit e1cc065

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,12 +1981,6 @@ trait Applications extends Compatibility {
19811981
case 0 =>
19821982
if winsType1 != winsType2 then if winsType1 then 1 else -1
19831983
else if alt1.symbol == alt2.symbol then comparePrefixes
1984-
else if preferGeneral then
1985-
// For implicit resolution, take ownerscore as more significat than type resoltion
1986-
// Reason: People use owner hierarchies to explicitly prioritize, we should not
1987-
// break that by changing implicit priority of types. On the other hand we do want
1988-
// to comparePrefixes if there is a draw; StringFormaterTest breaks if we don't do that.
1989-
ownerScore
19901984
else 0
19911985
end compareWithTypes
19921986

0 commit comments

Comments
 (0)