Skip to content

Commit de5f55d

Browse files
committed
TestReporter: Avoid a global lazy val
When compiling with dotty, this leads to NullPointerException because the lazy val is not @volatile. Better to just make it a val.
1 parent 8753f0b commit de5f55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/dotc/reporting/TestReporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extends Reporter with UniqueMessagePositions with HideNonSensicalMessages with M
9191
}
9292

9393
object TestReporter {
94-
lazy val logWriter = {
94+
val logWriter = {
9595
val df = new SimpleDateFormat("yyyy-MM-dd-HH:mm")
9696
val timestamp = df.format(new Date)
9797
new JFile("../testlogs").mkdirs()

0 commit comments

Comments
 (0)