File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1980,7 +1980,9 @@ trait Applications extends Compatibility {
1980
1980
// Reason: People use owner hierarchies to explicitly prioritize, we should not
1981
1981
// break that by changing implicit priority of types. On the other hand we do want
1982
1982
// to comparePrefixes if there is a draw; StringFormaterTest breaks if we don't do that.
1983
- def drawOrOwner = if preferGeneral then ownerScore else 0
1983
+ def drawOrOwner =
1984
+ if preferGeneral && ! ctx.mode.is(Mode .OldImplicitResolution ) then ownerScore
1985
+ else 0
1984
1986
ownerScore match
1985
1987
case 1 => if winsType1 || ! winsType2 then 1 else drawOrOwner
1986
1988
case - 1 => if winsType2 || ! winsType1 then - 1 else drawOrOwner
You can’t perform that action at this time.
0 commit comments