Skip to content

Commit 9f0e4c8

Browse files
committed
Mark '[T] as a pure expression
1 parent 6692f1c commit 9f0e4c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
388388
case New(_) | Closure(_, _, _) =>
389389
Pure
390390
case TypeApply(fn, _) =>
391-
if (fn.symbol.is(Erased)) Pure else exprPurity(fn)
391+
if (fn.symbol.is(Erased) || fn.symbol == defn.InternalQuoted_typeQuote) Pure else exprPurity(fn)
392392
case Apply(fn, args) =>
393393
def isKnownPureOp(sym: Symbol) =
394394
sym.owner.isPrimitiveValueClass || sym.owner == defn.StringClass

0 commit comments

Comments
 (0)