We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fda17a commit 8058592Copy full SHA for 8058592
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -1803,7 +1803,7 @@ trait Applications extends Compatibility {
1803
// prefer alternatives that need no eta expansion
1804
val noCurried = alts.filter(!resultIsMethod(_))
1805
val noCurriedCount = noCurried.length
1806
- if noCurried.length == 1 then
+ if noCurriedCount == 1 then
1807
noCurried
1808
else if noCurriedCount > 1 && noCurriedCount < alts.length then
1809
resolveOverloaded(noCurried, pt, targs)
0 commit comments