aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-09-24 16:20:31 +0200
committerMartin Odersky <odersky@gmail.com>2015-10-01 19:33:25 +0200
commitc6b21267c1f96cf8708689319f884d7d5cc04284 (patch)
tree5cd82f77f8d79cf36982fe1ceea3cf428bdd5dbf /src
parent7352fc4a6fd7b3637bb7eb5f79f8a14f4e46a2b1 (diff)
downloaddotty-c6b21267c1f96cf8708689319f884d7d5cc04284.tar.gz
dotty-c6b21267c1f96cf8708689319f884d7d5cc04284.tar.bz2
dotty-c6b21267c1f96cf8708689319f884d7d5cc04284.zip
Restore state when detecting a baseTypeRef cycle.
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 2ce2b8d20..d5ab09930 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1587,6 +1587,7 @@ object SymDenotations {
if (isCachable(tp)) baseTypeRefCache.put(tp, basetp)
else baseTypeRefCache.remove(tp)
} else if (basetp == NoPrefix) {
+ baseTypeRefCache.put(tp, null)
throw CyclicReference(this)
}
basetp