Skip to content

Commit

Permalink
Ensure quote do not contain Hole body
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed May 11, 2023
1 parent a135d9e commit 866b0cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ object TreeChecker {
assert(tree.tags.isEmpty, i"unexpected tags in Quote before staging phase: ${tree.tags}")
else
assert(!tree.body.isInstanceOf[untpd.Splice] || inInlineMethod, i"missed quote cancellation in $tree")
assert(!tree.body.isInstanceOf[untpd.Hole] || inInlineMethod, i"missed quote cancellation in $tree")
if StagingLevel.level != 0 then
assert(tree.tags.isEmpty, i"unexpected tags in Quote at staging level ${StagingLevel.level}: ${tree.tags}")

Expand Down

0 comments on commit 866b0cf

Please sign in to comment.