Skip to content

Commit 817cc9b

Browse files
Update ReifyQuotes.scala
1 parent f497ad9 commit 817cc9b

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
@@ -364,7 +364,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
364364
capturers(body.symbol)(body)
365365
case _=>
366366
val (body1, splices) = nested(isQuote = true).split(body)
367-
if (level == 0 && !ctx.owner.ownersIterator.exists(_.isTransparentMethod)) pickledQuote(body1, splices, body.tpe, isType).withPos(quote.pos)
367+
if (level == 0 && !ctx.inTransparentMethod) pickledQuote(body1, splices, body.tpe, isType).withPos(quote.pos)
368368
else {
369369
// In top-level splice in an transparent def. Keep the tree as it is, it will be transformed at inline site.
370370
body

0 commit comments

Comments
 (0)