@@ -37,7 +37,7 @@ class CompilationTests {
3737 compileFilesInDir(" tests/pos-special/sourcepath/outer"  , defaultOptions.and(" -sourcepath"  , " tests/pos-special/sourcepath"  )),
3838 compileFile(" tests/pos-special/sourcepath/outer/nested/Test4.scala"  , defaultOptions.and(" -sourcepath"  , " tests/pos-special/sourcepath"  )),
3939 compileFilesInDir(" tests/pos-scala2"  , defaultOptions.and(" -source"  , " 3.0-migration"  )),
40-  compileFilesInDir(" tests/pos-custom-args/captures"  , defaultOptions.and(" -language:experimental.captureChecking"  , " -source " ,  " 3.8 "  )),
40+  compileFilesInDir(" tests/pos-custom-args/captures"  , defaultOptions.and(" -language:experimental.captureChecking"  , " -language:experimental.separationChecking "  )),
4141 compileFile(" tests/pos-special/utf8encoded.scala"  , defaultOptions.and(" -encoding"  , " UTF8"  )),
4242 compileFile(" tests/pos-special/utf16encoded.scala"  , defaultOptions.and(" -encoding"  , " UTF16"  )),
4343 compileDir(" tests/pos-special/i18589"  , defaultOptions.and(" -Wsafe-init"  ).without(" -Ycheck:all"  )),
@@ -149,7 +149,7 @@ class CompilationTests {
149149 aggregateTests(
150150 compileFilesInDir(" tests/neg"  , defaultOptions, FileFilter .exclude(TestSources .negScala2LibraryTastyExcludelisted)),
151151 compileFilesInDir(" tests/neg-deep-subtype"  , allowDeepSubtypes),
152-  compileFilesInDir(" tests/neg-custom-args/captures"  , defaultOptions.and(" -language:experimental.captureChecking"  , " -source " ,  " 3.8 "  )),
152+  compileFilesInDir(" tests/neg-custom-args/captures"  , defaultOptions.and(" -language:experimental.captureChecking"  , " -language:experimental.separationChecking "  )),
153153 compileFile(" tests/neg-custom-args/sourcepath/outer/nested/Test1.scala"  , defaultOptions.and(" -sourcepath"  , " tests/neg-custom-args/sourcepath"  )),
154154 compileDir(" tests/neg-custom-args/sourcepath2/hi"  , defaultOptions.and(" -sourcepath"  , " tests/neg-custom-args/sourcepath2"  , " -Xfatal-warnings"  )),
155155 compileList(" duplicate source"  , List (
@@ -172,7 +172,7 @@ class CompilationTests {
172172 aggregateTests(
173173 compileFilesInDir(" tests/run"  , defaultOptions.and(" -Wsafe-init"  )),
174174 compileFilesInDir(" tests/run-deep-subtype"  , allowDeepSubtypes),
175-  compileFilesInDir(" tests/run-custom-args/captures"  , allowDeepSubtypes.and(" -language:experimental.captureChecking"  , " -source " ,  " 3.8 "  )),
175+  compileFilesInDir(" tests/run-custom-args/captures"  , allowDeepSubtypes.and(" -language:experimental.captureChecking"  , " -language:experimental.separationChecking "  )),
176176 //  Run tests for legacy lazy vals.
177177 compileFilesInDir(" tests/run"  , defaultOptions.and(" -Wsafe-init"  , " -Ylegacy-lazy-vals"  , " -Ycheck-constraint-deps"  ), FileFilter .include(TestSources .runLazyValsAllowlist)),
178178 ).checkRuns()
0 commit comments