Skip to content

Commit b0690ca

Browse files
committed
Review fixes
1 parent 5863562 commit b0690ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CompilationTests {
4444
compileFilesInDir("tests/pos-custom-args/captures", defaultOptions.and("-language:experimental.captureChecking")),
4545
compileFilesInDir("tests/pos-custom-args/erased", defaultOptions.and("-language:experimental.erasedDefinitions")),
4646
compileFilesInDir("tests/pos", defaultOptions.and("-Ysafe-init")),
47-
// Run tests for experimental lightweight lazy vals
47+
// Run tests for legacy lazy vals
4848
compileFilesInDir("tests/pos", defaultOptions.and("-Ysafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.posLazyValsAllowlist)),
4949
compileFilesInDir("tests/pos-deep-subtype", allowDeepSubtypes),
5050
compileFilesInDir("tests/pos-custom-args/no-experimental", defaultOptions.and("-Yno-experimental")),
@@ -212,7 +212,7 @@ class CompilationTests {
212212
compileFilesInDir("tests/run-custom-args/captures", allowDeepSubtypes.and("-language:experimental.captureChecking")),
213213
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
214214
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init"), FileFilter.exclude("serialization-new.scala")),
215-
// Run tests for experimental lightweight lazy vals and stable lazy vals.
215+
// Run tests for legacy lazy vals.
216216
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.runLazyValsAllowlist)),
217217
).checkRuns()
218218
}

library/src/scala/runtime/LazyVals.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ object LazyVals {
5959
*/
6060
object Evaluating extends LazyValControlState
6161

62+
/**
63+
* Used to indicate the state of a lazy val that has been evaluated to
64+
* `null`.
65+
*/
6266
object NullValue extends LazyValControlState
6367

6468
final val BITS_PER_LAZY_VAL = 2L

0 commit comments

Comments
 (0)