@@ -1364,7 +1364,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
1364
1364
* Two trials: First, without implicits or SAM conversions enabled. Then,
1365
1365
* if the fist finds no eligible candidates, with implicits and SAM conversions enabled.
1366
1366
*/
1367
- def resolveOverloaded (alts : List [TermRef ], pt : Type , pos : Position = NoPosition )(implicit ctx : Context ): List [TermRef ] = track(" resolveOverloaded" ) {
1367
+ def resolveOverloaded (alts : List [TermRef ], pt : Type )(implicit ctx : Context ): List [TermRef ] = track(" resolveOverloaded" ) {
1368
1368
1369
1369
/** Is `alt` a method or polytype whose result type after the first value parameter
1370
1370
* section conforms to the expected type `resultType`? If `resultType`
@@ -1409,9 +1409,9 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
1409
1409
case _ => chosen
1410
1410
}
1411
1411
1412
- var found = resolveOverloaded(alts, pt, Nil , pos )(ctx.retractMode(Mode .ImplicitsEnabled ))
1412
+ var found = resolveOverloaded(alts, pt, Nil )(ctx.retractMode(Mode .ImplicitsEnabled ))
1413
1413
if (found.isEmpty && ctx.mode.is(Mode .ImplicitsEnabled ))
1414
- found = resolveOverloaded(alts, pt, Nil , pos )
1414
+ found = resolveOverloaded(alts, pt, Nil )
1415
1415
found match {
1416
1416
case alt :: Nil => adaptByResult(alt) :: Nil
1417
1417
case _ => found
@@ -1423,7 +1423,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
1423
1423
* called twice from the public `resolveOverloaded` method, once with
1424
1424
* implicits and SAM conversions enabled, and once without.
1425
1425
*/
1426
- private def resolveOverloaded (alts : List [TermRef ], pt : Type , targs : List [Type ], pos : Position )(implicit ctx : Context ): List [TermRef ] = track(" resolveOverloaded" ) {
1426
+ private def resolveOverloaded (alts : List [TermRef ], pt : Type , targs : List [Type ])(implicit ctx : Context ): List [TermRef ] = track(" resolveOverloaded" ) {
1427
1427
1428
1428
def isDetermined (alts : List [TermRef ]) = alts.isEmpty || alts.tail.isEmpty
1429
1429
0 commit comments