Skip to content

Commit 4ef1bf7

Browse files
Update ReifyQuotes.scala
1 parent 60e22f8 commit 4ef1bf7

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
@@ -81,7 +81,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
8181
assert(Splicer.canBeSpliced(tree.qualifier))
8282
case _ =>
8383
}
84-
} else {
84+
} else if (!tree.isInstanceOf[DefDef]) {
8585
assert(tree.symbol != defn.QuotedExpr_~)
8686
// assert(tree.symbol != defn.QuotedType_~) // TODO widen ~ type references at stage 0?
8787
assert(tree.symbol != defn.QuotedExpr_apply)

0 commit comments

Comments
 (0)