File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments