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 c0e1279 commit 9f7a8b4Copy full SHA for 9f7a8b4
compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala
@@ -75,9 +75,8 @@ class ReifyQuotes extends MacroTransformWithImplicits {
75
override def phaseName: String = "reifyQuotes"
76
77
override def checkPostCondition(tree: Tree)(implicit ctx: Context): Unit = {
78
- val inTransparentMethod = ctx.owner.ownersIterator.exists(_.isTransparentMethod)
79
tree match {
80
- case tree: RefTree if !inTransparentMethod =>
+ case tree: RefTree if !ctx.inTransparentMethod =>
81
assert(!tree.symbol.isQuote)
82
// assert(!tree.symbol.isSplice) // TODO widen ~ type references at stage 0?
83
assert(tree.symbol != defn.QuotedExpr_~)
0 commit comments