@@ -1153,20 +1153,20 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
11531153 def isApplicableMethodRef (methRef : TermRef , targs : List [Type ], args : List [Tree ], resultType : Type , keepConstraint : Boolean )(implicit ctx : Context ): Boolean = {
11541154 def isApp (implicit ctx : Context ): Boolean =
11551155 new ApplicableToTrees (methRef, targs, args, resultType).success
1156- if (keepConstraint) isApp else ctx.test(implicit ctx => isApp)
1156+ if (keepConstraint) isApp else ctx.test(isApp)
11571157 }
11581158
11591159 /** Is given method reference applicable to type arguments `targs` and argument trees `args` without inferring views?
11601160 * @param resultType The expected result type of the application
11611161 */
11621162 def isDirectlyApplicableMethodRef (methRef : TermRef , targs : List [Type ], args : List [Tree ], resultType : Type )(implicit ctx : Context ): Boolean =
1163- ctx.test(implicit ctx => new ApplicableToTreesDirectly (methRef, targs, args, resultType).success)
1163+ ctx.test(new ApplicableToTreesDirectly (methRef, targs, args, resultType).success)
11641164
11651165 /** Is given method reference applicable to argument types `args`?
11661166 * @param resultType The expected result type of the application
11671167 */
11681168 def isApplicableMethodRef (methRef : TermRef , args : List [Type ], resultType : Type )(implicit ctx : Context ): Boolean =
1169- ctx.test(implicit ctx => new ApplicableToTypes (methRef, args, resultType).success)
1169+ ctx.test(new ApplicableToTypes (methRef, args, resultType).success)
11701170
11711171 /** Is given type applicable to type arguments `targs` and argument trees `args`,
11721172 * possibly after inserting an `apply`?
@@ -1287,7 +1287,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
12871287 case tp2 : MethodType => true // (3a)
12881288 case tp2 : PolyType if tp2.resultType.isInstanceOf [MethodType ] => true // (3a)
12891289 case tp2 : PolyType => // (3b)
1290- ctx.test(implicit ctx => isAsSpecificValueType(tp1, constrained(tp2).resultType))
1290+ ctx.test(isAsSpecificValueType(tp1, constrained(tp2).resultType))
12911291 case _ => // (3b)
12921292 isAsSpecificValueType(tp1, tp2)
12931293 }
@@ -1481,9 +1481,9 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
14811481 * do they prune much, on average.
14821482 */
14831483 def adaptByResult (chosen : TermRef , alts : List [TermRef ]) = pt match {
1484- case pt : FunProto if ! ctx.test(implicit ctx => resultConforms(chosen.symbol, chosen, pt.resultType)) =>
1484+ case pt : FunProto if ! ctx.test(resultConforms(chosen.symbol, chosen, pt.resultType)) =>
14851485 val conformingAlts = alts.filter(alt =>
1486- (alt ne chosen) && ctx.test(implicit ctx => resultConforms(alt.symbol, alt, pt.resultType)))
1486+ (alt ne chosen) && ctx.test(resultConforms(alt.symbol, alt, pt.resultType)))
14871487 conformingAlts match {
14881488 case Nil => chosen
14891489 case alt2 :: Nil => alt2
0 commit comments