Skip to content

Commit 866b0cf

Browse files
committed
Ensure quote do not contain Hole body
1 parent a135d9e commit 866b0cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ object TreeChecker {
664664
assert(tree.tags.isEmpty, i"unexpected tags in Quote before staging phase: ${tree.tags}")
665665
else
666666
assert(!tree.body.isInstanceOf[untpd.Splice] || inInlineMethod, i"missed quote cancellation in $tree")
667+
assert(!tree.body.isInstanceOf[untpd.Hole] || inInlineMethod, i"missed quote cancellation in $tree")
667668
if StagingLevel.level != 0 then
668669
assert(tree.tags.isEmpty, i"unexpected tags in Quote at staging level ${StagingLevel.level}: ${tree.tags}")
669670

0 commit comments

Comments
 (0)