@@ -1364,11 +1364,11 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
1364
1364
* objects, since these are anyway taken to be more specific than methods
1365
1365
* (by condition 3a above).
1366
1366
*/
1367
- def widenDelegate (tp : Type , alt : TermRef ): Type = tp match {
1367
+ def widenGiven (tp : Type , alt : TermRef ): Type = tp match {
1368
1368
case mt : MethodType if mt.isImplicitMethod =>
1369
- mt.derivedLambdaType(mt.paramNames, mt.paramInfos, widenDelegate (mt.resultType, alt))
1369
+ mt.derivedLambdaType(mt.paramNames, mt.paramInfos, widenGiven (mt.resultType, alt))
1370
1370
case pt : PolyType =>
1371
- pt.derivedLambdaType(pt.paramNames, pt.paramInfos, widenDelegate (pt.resultType, alt))
1371
+ pt.derivedLambdaType(pt.paramNames, pt.paramInfos, widenGiven (pt.resultType, alt))
1372
1372
case _ =>
1373
1373
if (alt.symbol.isAllOf(SyntheticGivenMethod )) tp.widenToParents
1374
1374
else tp
@@ -1400,8 +1400,8 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
1400
1400
if (winsType2) - 1 else 0
1401
1401
}
1402
1402
1403
- val fullType1 = widenDelegate (alt1.widen, alt1)
1404
- val fullType2 = widenDelegate (alt2.widen, alt2)
1403
+ val fullType1 = widenGiven (alt1.widen, alt1)
1404
+ val fullType2 = widenGiven (alt2.widen, alt2)
1405
1405
val strippedType1 = stripImplicit(fullType1)
1406
1406
val strippedType2 = stripImplicit(fullType2)
1407
1407
0 commit comments