Skip to content

Commit 11ccfb1

Browse files
committed
WIP
1 parent 7bcfefb commit 11ccfb1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ class ReifyQuotes extends MacroTransformWithImplicits {
126126
new Reifier(isQuote, this, if (isQuote) level + 1 else level - 1, levels, nestedEmbedded, ctx)
127127
}
128128

129-
/** We are in a `~(...)` context that is not shadowed by a nested `'(...)` */
130-
def inSplice: Boolean = outer != null && !inQuote
131-
132129
/** We are not in a `~(...)` or a `'(...)` */
133130
def isRoot: Boolean = outer == null
134131

@@ -297,7 +294,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
297294
def apply(acc: Unit, tp: Type): Unit = reporting.trace(i"check type level $tp at $level") {
298295
tp match {
299296
case tp: TypeRef if tp.symbol.isSplice =>
300-
if (inQuote) {
297+
if (level > 0) {
301298
explicitTags += tp
302299
outer.checkType(pos).foldOver(acc, tp)
303300
}

0 commit comments

Comments
 (0)