Skip to content

Commit a64e0a2

Browse files
oderskyDarkDimius
authored andcommitted
Made TypeVars uncahable keys
TypeVars can appear as keys in baseType caches. The problem is that their base types depend on their instantiation, which is not always know yet when the test is performed. So results of baseType on type variables should never be cached. Todo: check whether there are any other caching problems involving typevars.
1 parent 8ec91d4 commit a64e0a2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,6 @@ object SymDenotations {
14451445
.installAfter(phase)
14461446
}
14471447
}
1448-
14491448
private case class Uncachable(tp: Type) extends UncachedGroundType
14501449

14511450
/** The denotation of a package class.

0 commit comments

Comments
 (0)