Skip to content

Commit b74c723

Browse files
committed
Modify addert to handle nested definitions in the macro
1 parent 9a911ba commit b74c723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
184184
def tryHeal(tp: Type, pos: Position)(implicit ctx: Context): Option[String] = tp match {
185185
case tp: TypeRef =>
186186
if (level == 0) {
187-
assert(ctx.owner.is(Macro))
187+
assert(ctx.owner.ownersIterator.exists(_.is(Macro)))
188188
None
189189
} else {
190190
val reqType = defn.QuotedTypeType.appliedTo(tp)

0 commit comments

Comments
 (0)