Skip to content

Commit bba0db3

Browse files
Apply suggestions from code review
Co-authored-by: Eugene Flesselle <[email protected]>
1 parent 2795a50 commit bba0db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ trait Applications extends Compatibility {
18651865
* - From Scala 3.6, `T <:p U` means `T <: U` or `T` convertible to `U`
18661866
* for overloading resolution (when `preferGeneral is false), and the opposite relation
18671867
* `U <: T` or `U convertible to `T` for implicit disambiguation between givens
1868-
* (when `preferGeneral` is true). For old-style implicit values, the 3.4 behavior is kept.
1868+
* (when `preferGeneral` is true).
18691869
*
18701870
* - In Scala 3.5 and Scala 3.6-migration, we issue a warning if the result under
18711871
* Scala 3.6 differ wrt to the old behavior up to 3.5.
@@ -2011,7 +2011,7 @@ trait Applications extends Compatibility {
20112011
if strippedType2 eq fullType2
20122012
then drawOrOwner // no implicits either side: its' a draw
20132013
else 1 // prefer 1st alternative with no implicits
2014-
else if strippedType2 eq fullType2 then -1 // prefer 2nd alternative with no implicits
2014+
else if strippedType2 eq fullType2 then -1 // prefer 2nd alternative with no implicits
20152015
else compareWithTypes(fullType1, fullType2) // continue by comparing implicits parameters
20162016
}
20172017
end compare

0 commit comments

Comments
 (0)