@@ -796,9 +796,9 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
796
796
/** Reduce an inline match
797
797
* @param mtch the match tree
798
798
* @param scrutinee the scrutinee expression, assumed to be pure, or
799
- * EmptyTree for a delegate match
799
+ * EmptyTree for a summonFrom
800
800
* @param scrutType its fully defined type, or
801
- * ImplicitScrutineeTypeRef for a delegate match
801
+ * ImplicitScrutineeTypeRef for a summonFrom
802
802
* @param typer The current inline typer
803
803
* @return optionally, if match can be reduced to a matching case: A pair of
804
804
* 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) {
1072
1072
1073
1073
override def typedApply (tree : untpd.Apply , pt : Type )(implicit ctx : Context ): Tree =
1074
1074
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 =>
1080
1079
expandMacro(res.args.head, tree.span)
1081
1080
case res => res
1082
1081
}
@@ -1115,7 +1114,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
1115
1114
def patStr (cdef : untpd.CaseDef ) = i " case ${cdef.pat}${guardStr(cdef.guard)}"
1116
1115
val msg =
1117
1116
if (tree.selector.isEmpty)
1118
- em """ cannot reduce delegate match with
1117
+ em """ cannot reduce summonFrom with
1119
1118
| patterns : ${tree.cases.map(patStr).mkString(" \n " )}"""
1120
1119
else
1121
1120
em """ cannot reduce inline match with
0 commit comments