We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a911ba commit b74c723Copy full SHA for b74c723
compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala
@@ -184,7 +184,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
184
def tryHeal(tp: Type, pos: Position)(implicit ctx: Context): Option[String] = tp match {
185
case tp: TypeRef =>
186
if (level == 0) {
187
- assert(ctx.owner.is(Macro))
+ assert(ctx.owner.ownersIterator.exists(_.is(Macro)))
188
None
189
} else {
190
val reqType = defn.QuotedTypeType.appliedTo(tp)
0 commit comments