@@ -37,7 +37,7 @@ class CompilationTests {
37
37
compileFilesInDir(" tests/pos-special/sourcepath/outer" , defaultOptions.and(" -sourcepath" , " tests/pos-special/sourcepath" )),
38
38
compileFile(" tests/pos-special/sourcepath/outer/nested/Test4.scala" , defaultOptions.and(" -sourcepath" , " tests/pos-special/sourcepath" )),
39
39
compileFilesInDir(" tests/pos-scala2" , defaultOptions.and(" -source" , " 3.0-migration" )),
40
- compileFilesInDir(" tests/pos-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" , " -language:experimental.separationChecking" )),
40
+ compileFilesInDir(" tests/pos-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" , " -language:experimental.separationChecking" , " -source " , " 3.8 " )),
41
41
compileFile(" tests/pos-special/utf8encoded.scala" , defaultOptions.and(" -encoding" , " UTF8" )),
42
42
compileFile(" tests/pos-special/utf16encoded.scala" , defaultOptions.and(" -encoding" , " UTF16" )),
43
43
compileDir(" tests/pos-special/i18589" , defaultOptions.and(" -Wsafe-init" ).without(" -Ycheck:all" )),
@@ -149,7 +149,7 @@ class CompilationTests {
149
149
aggregateTests(
150
150
compileFilesInDir(" tests/neg" , defaultOptions, FileFilter .exclude(TestSources .negScala2LibraryTastyExcludelisted)),
151
151
compileFilesInDir(" tests/neg-deep-subtype" , allowDeepSubtypes),
152
- compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" , " -language:experimental.separationChecking" )),
152
+ compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" , " -language:experimental.separationChecking" , " -source " , " 3.8 " )),
153
153
compileFile(" tests/neg-custom-args/sourcepath/outer/nested/Test1.scala" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath" )),
154
154
compileDir(" tests/neg-custom-args/sourcepath2/hi" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath2" , " -Xfatal-warnings" )),
155
155
compileList(" duplicate source" , List (
@@ -172,7 +172,7 @@ class CompilationTests {
172
172
aggregateTests(
173
173
compileFilesInDir(" tests/run" , defaultOptions.and(" -Wsafe-init" )),
174
174
compileFilesInDir(" tests/run-deep-subtype" , allowDeepSubtypes),
175
- compileFilesInDir(" tests/run-custom-args/captures" , allowDeepSubtypes.and(" -language:experimental.captureChecking" , " -language:experimental.separationChecking" )),
175
+ compileFilesInDir(" tests/run-custom-args/captures" , allowDeepSubtypes.and(" -language:experimental.captureChecking" , " -language:experimental.separationChecking" , " -source " , " 3.8 " )),
176
176
// Run tests for legacy lazy vals.
177
177
compileFilesInDir(" tests/run" , defaultOptions.and(" -Wsafe-init" , " -Ylegacy-lazy-vals" , " -Ycheck-constraint-deps" ), FileFilter .include(TestSources .runLazyValsAllowlist)),
178
178
).checkRuns()
0 commit comments