Skip to content

Commit 56cbfec

Browse files
add Ysafe initi option to test compilation for safe val test
1 parent 92ddf85 commit 56cbfec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class CompilationTests {
242242
end if
243243
locally {
244244
val tastyErrorGroup = TestGroup("checkInitGlobal/safe-value-tasty")
245-
val options = defaultOptions.and("-Wsafe-init", "-Xfatal-warnings")
245+
val options = defaultOptions.and("-Wsafe-init", "-Xfatal-warnings", "-Ysafe-init-global")
246246
val tastyErrorOptions = options.without("-Xfatal-warnings")
247247

248248
val outDirDef = defaultOutputDir + tastyErrorGroup + "/SafeValuesDef/safe-value-tasty/SafeValuesDef"

0 commit comments

Comments
 (0)