@@ -796,9 +796,9 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
796796 /** Reduce an inline match
797797 * @param mtch the match tree
798798 * @param scrutinee the scrutinee expression, assumed to be pure, or
799- * EmptyTree for a delegate match
799+ * EmptyTree for a summonFrom
800800 * @param scrutType its fully defined type, or
801- * ImplicitScrutineeTypeRef for a delegate match
801+ * ImplicitScrutineeTypeRef for a summonFrom
802802 * @param typer The current inline typer
803803 * @return optionally, if match can be reduced to a matching case: A pair of
804804 * bindings for all pattern-bound variables and the RHS of the case.
@@ -1072,11 +1072,10 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
10721072
10731073 override def typedApply (tree : untpd.Apply , pt : Type )(implicit ctx : Context ): Tree =
10741074 constToLiteral(betaReduce(super .typedApply(tree, pt))) match {
1075- case res : Apply
1076- if res.symbol == defn.InternalQuoted_exprSplice &&
1077- level == 0 &&
1078- call.symbol.is(Macro ) &&
1079- ! suppressInline =>
1075+ case res : Apply if res.symbol == defn.InternalQuoted_exprSplice
1076+ && level == 0
1077+ && call.symbol.is(Macro )
1078+ && ! suppressInline =>
10801079 expandMacro(res.args.head, tree.span)
10811080 case res => res
10821081 }
@@ -1115,7 +1114,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
11151114 def patStr (cdef : untpd.CaseDef ) = i " case ${cdef.pat}${guardStr(cdef.guard)}"
11161115 val msg =
11171116 if (tree.selector.isEmpty)
1118- em """ cannot reduce delegate match with
1117+ em """ cannot reduce summonFrom with
11191118 | patterns : ${tree.cases.map(patStr).mkString(" \n " )}"""
11201119 else
11211120 em """ cannot reduce inline match with
0 commit comments