Skip to content

Commit 63a8284

Browse files
szymon-rdodersky
authored andcommitted
Review fixes
1 parent 137c1a0 commit 63a8284

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")),
@@ -213,7 +213,7 @@ class CompilationTests {
213213
compileFilesInDir("tests/run-custom-args/captures", allowDeepSubtypes.and("-language:experimental.captureChecking")),
214214
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
215215
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init"), FileFilter.exclude("serialization-new.scala")),
216-
// Run tests for experimental lightweight lazy vals and stable lazy vals.
216+
// Run tests for legacy lazy vals.
217217
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.runLazyValsAllowlist)),
218218
).checkRuns()
219219
}

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)