Skip to content

Commit 2e04698

Browse files
Fix typo in method name
It was supposed to be `isNotRoot`, now it is actually `isRoot`
1 parent 779fc66 commit 2e04698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
145145
def inSplice = outer != null && !inQuote
146146

147147
/** We are not in a `~(...)` or a `'(...)` */
148-
def isRoot = outer != null
148+
def isRoot = outer == null
149149

150150
/** A map from type ref T to expressions of type `quoted.Type[T]`".
151151
* These will be turned into splices using `addTags` and represent type variables
@@ -294,7 +294,7 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
294294
else i"${sym.name}.this"
295295
if (!isThis && sym.maybeOwner.isType && !sym.is(Param))
296296
check(sym.owner, sym.owner.thisType, pos)
297-
else if (level == 1 && sym.isType && sym.is(Param) && sym.owner.is(Macro) && outer.isRoot)
297+
else if (level == 1 && sym.isType && sym.is(Param) && sym.owner.is(Macro) && !outer.isRoot)
298298
importedTags(sym.typeRef) = capturers(sym)(ref(sym))
299299
else if (sym.exists && !sym.isStaticOwner && !levelOK(sym))
300300
for (errMsg <- tryHeal(tp, pos))

0 commit comments

Comments
 (0)