File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -601,16 +601,16 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
601
601
case _ =>
602
602
tryEither {
603
603
implicit ctx => simpleApply(fun1, proto)
604
- } {
605
- (failedVal, failedState) =>
606
- def fail = { failedState.commit(); failedVal }
607
- // Try once with original prototype and once (if different) with tupled one.
608
- // The reason we need to try both is that the decision whether to use tupled
609
- // or not was already taken but might have to be revised when an implicit
610
- // is inserted on the qualifier.
611
- tryWithImplicitOnQualifier(fun1, originalProto).getOrElse(
612
- if (proto eq originalProto) fail
613
- else tryWithImplicitOnQualifier(fun1, proto).getOrElse(fail))
604
+ } { (failedVal, failedState) =>
605
+ def fail = { failedState.commit(); failedVal }
606
+ // Try once with original prototype and once (if different) with tupled one.
607
+ // The reason we need to try both is that the decision whether to use tupled
608
+ // or not was already taken but might have to be revised when an implicit
609
+ // is inserted on the qualifier.
610
+ tryWithImplicitOnQualifier(fun1, originalProto) getOrElse {
611
+ if (proto eq originalProto) fail
612
+ else tryWithImplicitOnQualifier(fun1, proto).getOrElse( fail)
613
+ }
614
614
}
615
615
}
616
616
}
You can’t perform that action at this time.
0 commit comments