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 ac9ef34 commit 289bd35Copy full SHA for 289bd35
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -798,6 +798,9 @@ object Semantic {
798
cache.update()
799
heap.restore(heapBefore)
800
801
+ // reset change
802
+ cache.changed = false
803
+
804
work()
805
case _ =>
806
@@ -873,6 +876,7 @@ object Semantic {
873
876
cache.out.put(thisV, expr, assumeValue)
874
877
val res = cases(expr, thisV, klass)
875
878
if res.value != assumeValue then
879
+ // println("changed: old = " + assumeValue + ", res = " + res.value)
880
cache.changed = true
881
cache.out.put(thisV, expr, res.value) // must put in cache for termination
882
else
0 commit comments