@@ -240,7 +240,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
240
240
def tryHeal (tp : Type , pos : Position )(implicit ctx : Context ): Option [String ] = tp match {
241
241
case tp : TypeRef =>
242
242
if (level == 0 ) {
243
- assert(ctx.owner.ownersIterator.exists(_.is(Macro )))
243
+ assert(ctx.owner.ownersIterator.exists(_.is(Inline )))
244
244
None
245
245
} else {
246
246
val reqType = defn.QuotedTypeType .appliedTo(tp)
@@ -271,7 +271,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
271
271
else i " ${sym.name}.this "
272
272
if (! isThis && sym.maybeOwner.isType && ! sym.is(Param ))
273
273
check(sym.owner, sym.owner.thisType, pos)
274
- else if (level == 1 && sym.isType && sym.is(Param ) && sym.owner.is(Macro ) && ! outer.isRoot)
274
+ else if (level == 1 && sym.isType && sym.is(Param ) && sym.owner.is(Inline ) && ! outer.isRoot)
275
275
importedTags(sym.typeRef) = capturers(sym)(ref(sym))
276
276
else if (sym.exists && ! sym.isStaticOwner && ! levelOK(sym))
277
277
for (errMsg <- tryHeal(tp, pos))
@@ -488,7 +488,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
488
488
489
489
outer.enteredSyms.foreach(registerCapturer)
490
490
491
- if (ctx.owner.owner.is(Macro )) {
491
+ if (ctx.owner.owner.is(Inline )) {
492
492
registerCapturer(defn.TastyTopLevelSplice_tastyContext )
493
493
// Force a macro to have the context in first position
494
494
forceCapture(defn.TastyTopLevelSplice_tastyContext )
@@ -612,7 +612,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
612
612
}
613
613
614
614
private def isStage0Value (sym : Symbol )(implicit ctx : Context ): Boolean =
615
- (sym.is(Inline ) && sym.owner.is(Macro ) && ! defn.isFunctionType(sym.info)) ||
615
+ (sym.is(Inline ) && sym.owner.is(Inline ) && ! defn.isFunctionType(sym.info)) ||
616
616
sym == defn.TastyTopLevelSplice_tastyContext // intrinsic value at stage 0
617
617
618
618
private def liftList (list : List [Tree ], tpe : Type )(implicit ctx : Context ): Tree = {
0 commit comments