@@ -509,7 +509,7 @@ trait Implicits { self: Typer =>
509509 && from.isValueType
510510 && ( from.isValueSubType(to)
511511 || inferView(dummyTreeOfType(from), to)
512- (ctx.fresh.addMode(Mode .ImplicitExploration ).setExploreTyperState)
512+ (ctx.fresh.addMode(Mode .ImplicitExploration ).setExploreTyperState() )
513513 .isInstanceOf [SearchSuccess ]
514514 // TODO: investigate why we can't TyperState#test here
515515 )
@@ -787,7 +787,7 @@ trait Implicits { self: Typer =>
787787 val generated1 = adapt(generated, pt)
788788 lazy val shadowing =
789789 typed(untpd.Ident (ref.name) withPos pos.toSynthetic, funProto)(
790- nestedContext.addMode(Mode .ImplicitShadowing ).setExploreTyperState)
790+ nestedContext.addMode(Mode .ImplicitShadowing ).setExploreTyperState() )
791791 def refSameAs (shadowing : Tree ): Boolean =
792792 ref.symbol == closureBody(shadowing).symbol || {
793793 shadowing match {
@@ -819,7 +819,7 @@ trait Implicits { self: Typer =>
819819 val history = ctx.searchHistory nest wildProto
820820 val result =
821821 if (history eq ctx.searchHistory) divergingImplicit(cand.ref)
822- else typedImplicit(cand)(nestedContext.setNewTyperState.setSearchHistory(history))
822+ else typedImplicit(cand)(nestedContext.setNewTyperState() .setSearchHistory(history))
823823 result match {
824824 case fail : SearchFailure =>
825825 rankImplicits(pending1, acc)
0 commit comments