File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1532,14 +1532,13 @@ object Trees {
1532
1532
case tp : PolyType => tp.paramInfos.length
1533
1533
case _ => 0
1534
1534
}
1535
- var allAlts = denot.alternatives
1535
+ val allAlts = denot.alternatives
1536
1536
.map(denot => TermRef (receiver.tpe, denot.symbol))
1537
1537
.filter(tr => typeParamCount(tr) == targs.length)
1538
1538
.filter { _.widen match {
1539
1539
case MethodTpe (_, _, x : MethodType ) => ! x.isImplicitMethod
1540
1540
case _ => true
1541
1541
}}
1542
- if (targs.isEmpty) allAlts = allAlts.filterNot(_.widen.isInstanceOf [PolyType ])
1543
1542
val alternatives = ctx.typer.resolveOverloaded(allAlts, proto)
1544
1543
assert(alternatives.size == 1 ,
1545
1544
i " ${if (alternatives.isEmpty) " no" else " multiple" } overloads available for " +
You can’t perform that action at this time.
0 commit comments