@@ -32,7 +32,7 @@ class CompilationTests {
32
32
implicit val testGroup : TestGroup = TestGroup (" compilePos" )
33
33
var tests = List (
34
34
compileFilesInDir(" tests/pos" , defaultOptions.and(" -Ysafe-init" , " -Wunused:all" , " -Xlint:private-shadow" , " -Xlint:type-parameter-shadow" ), FileFilter .include(TestSources .posLintingAllowlist)),
35
- compileFilesInDir(" tests/pos" , defaultOptions.and(" -Ysafe-init" ), FileFilter .exclude(TestSources .posLintingAllowlist)),
35
+ compileFilesInDir(" tests/pos" , defaultOptions.and(" -Ysafe-init" ), FileFilter .exclude(TestSources .posLintingAllowlist ::: TestSources .scala2LibraryTastyBlacklisted )),
36
36
compileFilesInDir(" tests/pos-deep-subtype" , allowDeepSubtypes),
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" )),
@@ -44,7 +44,10 @@ class CompilationTests {
44
44
// Run tests for legacy lazy vals
45
45
compileFilesInDir(" tests/pos" , defaultOptions.and(" -Ysafe-init" , " -Ylegacy-lazy-vals" , " -Ycheck-constraint-deps" ), FileFilter .include(TestSources .posLazyValsAllowlist)),
46
46
compileDir(" tests/pos-special/java-param-names" , defaultOptions.withJavacOnlyOptions(" -parameters" )),
47
- compileDir(" tests/pos-special/stdlib" , allowDeepSubtypes),
47
+ ) ::: (
48
+ // FIXME: This fails due to a bug involving self types and capture checking
49
+ if Properties .usingScalaLibraryTasty then Nil
50
+ else List (compileDir(" tests/pos-special/stdlib" , allowDeepSubtypes))
48
51
)
49
52
50
53
if scala.util.Properties .isJavaAtLeast(" 16" ) then
@@ -130,7 +133,7 @@ class CompilationTests {
130
133
@ Test def negAll : Unit = {
131
134
implicit val testGroup : TestGroup = TestGroup (" compileNeg" )
132
135
aggregateTests(
133
- compileFilesInDir(" tests/neg" , defaultOptions),
136
+ compileFilesInDir(" tests/neg" , defaultOptions, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ),
134
137
compileFilesInDir(" tests/neg-deep-subtype" , allowDeepSubtypes),
135
138
compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" )),
136
139
compileFile(" tests/neg-custom-args/sourcepath/outer/nested/Test1.scala" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath" )),
@@ -153,7 +156,7 @@ class CompilationTests {
153
156
@ Test def runAll : Unit = {
154
157
implicit val testGroup : TestGroup = TestGroup (" runAll" )
155
158
aggregateTests(
156
- compileFilesInDir(" tests/run" , defaultOptions.and(" -Ysafe-init" )),
159
+ compileFilesInDir(" tests/run" , defaultOptions.and(" -Ysafe-init" ), FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ),
157
160
compileFilesInDir(" tests/run-deep-subtype" , allowDeepSubtypes),
158
161
compileFilesInDir(" tests/run-custom-args/captures" , allowDeepSubtypes.and(" -language:experimental.captureChecking" )),
159
162
// Run tests for legacy lazy vals.
@@ -173,7 +176,7 @@ class CompilationTests {
173
176
@ Test def pickling : Unit = {
174
177
implicit val testGroup : TestGroup = TestGroup (" testPickling" )
175
178
aggregateTests(
176
- compileFilesInDir(" tests/pos" , picklingOptions, FileFilter .exclude(TestSources .posTestPicklingBlacklisted)),
179
+ compileFilesInDir(" tests/pos" , picklingOptions, FileFilter .exclude(TestSources .posTestPicklingBlacklisted ::: TestSources .scala2LibraryTastyBlacklisted )),
177
180
compileFilesInDir(" tests/run" , picklingOptions, FileFilter .exclude(TestSources .runTestPicklingBlacklisted))
178
181
).checkCompile()
179
182
}
@@ -213,8 +216,8 @@ class CompilationTests {
213
216
@ Test def checkInitGlobal : Unit = {
214
217
implicit val testGroup : TestGroup = TestGroup (" checkInitGlobal" )
215
218
val options = defaultOptions.and(" -Ysafe-init-global" , " -Xfatal-warnings" )
216
- compileFilesInDir(" tests/init-global/neg" , options).checkExpectedErrors()
217
- compileFilesInDir(" tests/init-global/pos" , options).checkCompile()
219
+ compileFilesInDir(" tests/init-global/neg" , options, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ).checkExpectedErrors()
220
+ compileFilesInDir(" tests/init-global/pos" , options, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ).checkCompile()
218
221
}
219
222
220
223
// initialization tests
0 commit comments