We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103d167 commit 9ab1568Copy full SHA for 9ab1568
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1323,9 +1323,9 @@ object SymDenotations {
1323
* or whose instances can change, depending on typerstate.
1324
*/
1325
def isCachable(tp: Type): Boolean = tp match {
1326
+ case tp: TypeVar => tp.inst.exists && inCache(tp.inst)
1327
case tp: TypeProxy => inCache(tp.underlying)
1328
case tp: AndOrType => inCache(tp.tp1) && inCache(tp.tp2)
- case tp: TypeVar => tp.inst.exists && inCache(tp.inst)
1329
case _ => true
1330
}
1331
0 commit comments