Skip to content

Commit ed76b73

Browse files
committed
Try caching baseType for term-owned typerefs too
1 parent 7ada264 commit ed76b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,8 +1685,8 @@ object SymDenotations {
16851685
case _ =>
16861686
val superTp = tp.superType
16871687
val baseTp = recur(superTp)
1688-
if (inCache(superTp) && tp.symbol.maybeOwner.isType)
1689-
record(tp, baseTp) // typeref cannot be a GADT, so cache is stable
1688+
if (inCache(superTp))
1689+
record(tp, baseTp)
16901690
else
16911691
btrCache.remove(tp)
16921692
baseTp

0 commit comments

Comments
 (0)