File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2219,11 +2219,11 @@ trait Applications extends Compatibility {
22192219 deepPt match
22202220 case pt @ FunProto (_, PolyProto (targs, resType)) =>
22212221 // try to narrow further with snd argument list and following type params
2222- resolveMapped(candidates ,
2222+ resolveMapped(found ,
22232223 skipParamClause(pt.typedArgs().tpes, targs.tpes), resType)
22242224 case pt @ FunProto (_, resType : FunOrPolyProto ) =>
22252225 // try to narrow further with snd argument list
2226- resolveMapped(candidates ,
2226+ resolveMapped(found ,
22272227 skipParamClause(pt.typedArgs().tpes, Nil ), resType)
22282228 case _ =>
22292229 // prefer alternatives that need no eta expansion
@@ -2245,7 +2245,7 @@ trait Applications extends Compatibility {
22452245 // try again with a deeper known expected type
22462246 resolveOverloaded1(alts, deepPt)
22472247 else
2248- candidates
2248+ found
22492249 }
22502250 end resolveOverloaded1
22512251
You can’t perform that action at this time.
0 commit comments