Commit 363802f
authored
Add init test for cacheResult flag (#17150)
This test checks for the presence of the `cacheResult = true` flag on
the call to cachedEval from
[Semantic.scala:992](https://github.com/lampepfl/dotty/blob/e3aeed198717e6764f2a27b70a22a03b03a87a0b/compiler/src/dotty/tools/dotc/transform/init/Semantic.scala#L992).
Without that flag, the compiler crashes on this test with `-Ysafe-init`.1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments