Skip to content

Commit 9a911ba

Browse files
committed
Add back assert
1 parent da6d379 commit 9a911ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +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))
187188
None
188189
} else {
189190
val reqType = defn.QuotedTypeType.appliedTo(tp)

0 commit comments

Comments
 (0)