Skip to content

Commit 462eaf1

Browse files
DarkDimiusodersky
authored andcommitted
Fix errors in SymDenotations.isCachable.
TypeVar is a TypeProxy.
1 parent 5708b17 commit 462eaf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,9 +1323,9 @@ object SymDenotations {
13231323
* or whose instances can change, depending on typerstate.
13241324
*/
13251325
def isCachable(tp: Type): Boolean = tp match {
1326+
case tp: TypeVar => tp.inst.exists && inCache(tp.inst)
13261327
case tp: TypeProxy => inCache(tp.underlying)
13271328
case tp: AndOrType => inCache(tp.tp1) && inCache(tp.tp2)
1328-
case tp: TypeVar => tp.inst.exists && inCache(tp.inst)
13291329
case _ => true
13301330
}
13311331

0 commit comments

Comments
 (0)