Skip to content

Commit 8058592

Browse files
oderskyliufengyun
andauthored
Update compiler/src/dotty/tools/dotc/typer/Applications.scala
Co-Authored-By: Fengyun Liu <liu@fengy.me>
1 parent 5fda17a commit 8058592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ trait Applications extends Compatibility {
18031803
// prefer alternatives that need no eta expansion
18041804
val noCurried = alts.filter(!resultIsMethod(_))
18051805
val noCurriedCount = noCurried.length
1806-
if noCurried.length == 1 then
1806+
if noCurriedCount == 1 then
18071807
noCurried
18081808
else if noCurriedCount > 1 && noCurriedCount < alts.length then
18091809
resolveOverloaded(noCurried, pt, targs)

0 commit comments

Comments
 (0)