@@ -210,8 +210,8 @@ class CompilationTests {
210
210
implicit val testGroup : TestGroup = TestGroup (" explicitNullsNeg" )
211
211
aggregateTests(
212
212
compileFilesInDir(" tests/explicit-nulls/neg" , explicitNullsOptions, FileFilter .exclude(TestSources .negExplicitNullsScala2LibraryTastyExcludelisted)),
213
- compileFilesInDir(" tests/explicit-nulls/flexible-types-common" , explicitNullsOptions and " -Yno-flexible-types" ),
214
- compileFilesInDir(" tests/explicit-nulls/unsafe-common" , explicitNullsOptions and " -Yno-flexible-types" , FileFilter .exclude(TestSources .negExplicitNullsScala2LibraryTastyExcludelisted)),
213
+ compileFilesInDir(" tests/explicit-nulls/flexible-types-common" , explicitNullsOptions ` and` " -Yno-flexible-types" ),
214
+ compileFilesInDir(" tests/explicit-nulls/unsafe-common" , explicitNullsOptions ` and` " -Yno-flexible-types" , FileFilter .exclude(TestSources .negExplicitNullsScala2LibraryTastyExcludelisted)),
215
215
).checkExpectedErrors()
216
216
217
217
locally {
@@ -231,12 +231,12 @@ class CompilationTests {
231
231
aggregateTests(
232
232
compileFilesInDir(" tests/explicit-nulls/pos" , explicitNullsOptions),
233
233
compileFilesInDir(" tests/explicit-nulls/flexible-types-common" , explicitNullsOptions),
234
- compileFilesInDir(" tests/explicit-nulls/unsafe-common" , explicitNullsOptions and " -language:unsafeNulls" and " -Yno-flexible-types" ),
234
+ compileFilesInDir(" tests/explicit-nulls/unsafe-common" , explicitNullsOptions ` and` " -language:unsafeNulls" ` and` " -Yno-flexible-types" ),
235
235
).checkCompile()
236
236
237
237
locally {
238
238
val tests = List (
239
- compileFile(" tests/explicit-nulls/flexible-unpickle/pos/Unsafe_1.scala" , explicitNullsOptions without " -Yexplicit-nulls" ),
239
+ compileFile(" tests/explicit-nulls/flexible-unpickle/pos/Unsafe_1.scala" , explicitNullsOptions ` without` " -Yexplicit-nulls" ),
240
240
compileFile(" tests/explicit-nulls/flexible-unpickle/pos/Flexible_2.scala" ,
241
241
explicitNullsOptions.and(" -Yflexify-tasty" ).withClasspath(defaultOutputDir + testGroup + " /Unsafe_1/pos/Unsafe_1" )),
242
242
).map(_.keepOutput.checkCompile())
@@ -289,9 +289,9 @@ class CompilationTests {
289
289
val outDir2 = defaultOutputDir + i12128Group + " /Macro_2/i12128/Macro_2"
290
290
291
291
val tests = List (
292
- compileFile(" tests/init/special/i12128/Reflect_1.scala" , i12128Options)(i12128Group),
293
- compileFile(" tests/init/special/i12128/Macro_2.scala" , i12128Options.withClasspath(outDir1))(i12128Group),
294
- compileFile(" tests/init/special/i12128/Test_3.scala" , options.withClasspath(outDir2))(i12128Group)
292
+ compileFile(" tests/init/special/i12128/Reflect_1.scala" , i12128Options)(using i12128Group),
293
+ compileFile(" tests/init/special/i12128/Macro_2.scala" , i12128Options.withClasspath(outDir1))(using i12128Group),
294
+ compileFile(" tests/init/special/i12128/Test_3.scala" , options.withClasspath(outDir2))(using i12128Group)
295
295
).map(_.keepOutput.checkCompile())
296
296
297
297
tests.foreach(_.delete())
@@ -310,12 +310,12 @@ class CompilationTests {
310
310
val classB1 = defaultOutputDir + tastyErrorGroup + " /B/v1/B"
311
311
312
312
val tests = List (
313
- compileFile(" tests/init/tasty-error/val-or-defdef/v1/A.scala" , tastyErrorOptions)(tastyErrorGroup),
314
- compileFile(" tests/init/tasty-error/val-or-defdef/v1/B.scala" , tastyErrorOptions.withClasspath(classA1))(tastyErrorGroup),
315
- compileFile(" tests/init/tasty-error/val-or-defdef/v0/A.scala" , tastyErrorOptions)(tastyErrorGroup),
313
+ compileFile(" tests/init/tasty-error/val-or-defdef/v1/A.scala" , tastyErrorOptions)(using tastyErrorGroup),
314
+ compileFile(" tests/init/tasty-error/val-or-defdef/v1/B.scala" , tastyErrorOptions.withClasspath(classA1))(using tastyErrorGroup),
315
+ compileFile(" tests/init/tasty-error/val-or-defdef/v0/A.scala" , tastyErrorOptions)(using tastyErrorGroup),
316
316
).map(_.keepOutput.checkCompile())
317
317
318
- compileFile(" tests/init/tasty-error/val-or-defdef/Main.scala" , tastyErrorOptions.withClasspath(classA0).withClasspath(classB1))(tastyErrorGroup).checkExpectedErrors()
318
+ compileFile(" tests/init/tasty-error/val-or-defdef/Main.scala" , tastyErrorOptions.withClasspath(classA0).withClasspath(classB1))(using tastyErrorGroup).checkExpectedErrors()
319
319
320
320
tests.foreach(_.delete())
321
321
}
@@ -334,13 +334,13 @@ class CompilationTests {
334
334
val classB1 = defaultOutputDir + tastyErrorGroup + " /B/v1/B"
335
335
336
336
val tests = List (
337
- compileFile(" tests/init/tasty-error/typedef/C.scala" , tastyErrorOptions)(tastyErrorGroup),
338
- compileFile(" tests/init/tasty-error/typedef/v1/A.scala" , tastyErrorOptions.withClasspath(classC))(tastyErrorGroup),
339
- compileFile(" tests/init/tasty-error/typedef/v1/B.scala" , tastyErrorOptions.withClasspath(classC).withClasspath(classA1))(tastyErrorGroup),
340
- compileFile(" tests/init/tasty-error/typedef/v0/A.scala" , tastyErrorOptions.withClasspath(classC))(tastyErrorGroup),
337
+ compileFile(" tests/init/tasty-error/typedef/C.scala" , tastyErrorOptions)(using tastyErrorGroup),
338
+ compileFile(" tests/init/tasty-error/typedef/v1/A.scala" , tastyErrorOptions.withClasspath(classC))(using tastyErrorGroup),
339
+ compileFile(" tests/init/tasty-error/typedef/v1/B.scala" , tastyErrorOptions.withClasspath(classC).withClasspath(classA1))(using tastyErrorGroup),
340
+ compileFile(" tests/init/tasty-error/typedef/v0/A.scala" , tastyErrorOptions.withClasspath(classC))(using tastyErrorGroup),
341
341
).map(_.keepOutput.checkCompile())
342
342
343
- compileFile(" tests/init/tasty-error/typedef/Main.scala" , tastyErrorOptions.withClasspath(classC).withClasspath(classA0).withClasspath(classB1))(tastyErrorGroup).checkExpectedErrors()
343
+ compileFile(" tests/init/tasty-error/typedef/Main.scala" , tastyErrorOptions.withClasspath(classC).withClasspath(classA0).withClasspath(classB1))(using tastyErrorGroup).checkExpectedErrors()
344
344
345
345
tests.foreach(_.delete())
346
346
}
0 commit comments