@@ -1364,7 +1364,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
13641364 * Two trials: First, without implicits or SAM conversions enabled. Then,
13651365 * if the fist finds no eligible candidates, with implicits and SAM conversions enabled.
13661366 */
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" ) {
13681368
13691369 /** Is `alt` a method or polytype whose result type after the first value parameter
13701370 * section conforms to the expected type `resultType`? If `resultType`
@@ -1409,9 +1409,9 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
14091409 case _ => chosen
14101410 }
14111411
1412- var found = resolveOverloaded(alts, pt, Nil , pos )(ctx.retractMode(Mode .ImplicitsEnabled ))
1412+ var found = resolveOverloaded(alts, pt, Nil )(ctx.retractMode(Mode .ImplicitsEnabled ))
14131413 if (found.isEmpty && ctx.mode.is(Mode .ImplicitsEnabled ))
1414- found = resolveOverloaded(alts, pt, Nil , pos )
1414+ found = resolveOverloaded(alts, pt, Nil )
14151415 found match {
14161416 case alt :: Nil => adaptByResult(alt) :: Nil
14171417 case _ => found
@@ -1423,7 +1423,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
14231423 * called twice from the public `resolveOverloaded` method, once with
14241424 * implicits and SAM conversions enabled, and once without.
14251425 */
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" ) {
14271427
14281428 def isDetermined (alts : List [TermRef ]) = alts.isEmpty || alts.tail.isEmpty
14291429
0 commit comments