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 2589824 commit 2849052Copy full SHA for 2849052
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -304,6 +304,14 @@ object Semantic {
304
this.changed = true
305
last.put(value, expr, actual.value)
306
current.put(value, expr, actual.value)
307
+ else
308
+ // It's tempting to cache the value in stable, but it's unsound.
309
+ // The reason is that the current value may depend on other values
310
+ // which might change.
311
+ //
312
+ // stable.put(value, expr, actual)
313
+ ()
314
+ end if
315
316
actual
317
0 commit comments