Skip to content

Commit 0709c53

Browse files
committed
Add explicit nulls flag to compiler tests
1 parent b82caf4 commit 0709c53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class TastyBootstrapTests {
5050
Properties.compilerInterface, Properties.scalaLibrary, Properties.scalaAsm,
5151
Properties.dottyInterfaces, Properties.jlineTerminal, Properties.jlineReader,
5252
).mkString(File.pathSeparator),
53-
Array("-Ycheck-reentrant", "-language:postfixOps", "-Xsemanticdb")
53+
Array("-Ycheck-reentrant", "-language:postfixOps", "-Xsemanticdb", "-Yexplicit-nulls")
5454
)
5555

5656
val libraryDirs = List(Paths.get("library/src"), Paths.get("library/src-bootstrapped"))

compiler/test/dotty/tools/vulpix/TestConfiguration.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ object TestConfiguration {
8282
"-Yprint-pos-syms"
8383
)
8484
val picklingWithCompilerOptions =
85-
picklingOptions.withClasspath(withCompilerClasspath).withRunClasspath(withCompilerClasspath)
85+
picklingOptions.withClasspath(withCompilerClasspath).withRunClasspath(withCompilerClasspath) and "-Yexplicit-nulls"
8686
val scala2CompatMode = defaultOptions.and("-source", "3.0-migration")
8787
val explicitUTF8 = defaultOptions and ("-encoding", "UTF8")
8888
val explicitUTF16 = defaultOptions and ("-encoding", "UTF16")

0 commit comments

Comments
 (0)