@@ -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
@@ -128,7 +131,7 @@ class CompilationTests {
128
131
@ Test def negAll : Unit = {
129
132
implicit val testGroup : TestGroup = TestGroup (" compileNeg" )
130
133
aggregateTests(
131
- compileFilesInDir(" tests/neg" , defaultOptions),
134
+ compileFilesInDir(" tests/neg" , defaultOptions, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ),
132
135
compileFilesInDir(" tests/neg-deep-subtype" , allowDeepSubtypes),
133
136
compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" )),
134
137
compileFile(" tests/neg-custom-args/sourcepath/outer/nested/Test1.scala" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath" )),
@@ -151,7 +154,7 @@ class CompilationTests {
151
154
@ Test def runAll : Unit = {
152
155
implicit val testGroup : TestGroup = TestGroup (" runAll" )
153
156
aggregateTests(
154
- compileFilesInDir(" tests/run" , defaultOptions.and(" -Ysafe-init" )),
157
+ compileFilesInDir(" tests/run" , defaultOptions.and(" -Ysafe-init" ), FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ),
155
158
compileFilesInDir(" tests/run-deep-subtype" , allowDeepSubtypes),
156
159
compileFilesInDir(" tests/run-custom-args/captures" , allowDeepSubtypes.and(" -language:experimental.captureChecking" )),
157
160
// Run tests for legacy lazy vals.
@@ -171,7 +174,7 @@ class CompilationTests {
171
174
@ Test def pickling : Unit = {
172
175
implicit val testGroup : TestGroup = TestGroup (" testPickling" )
173
176
aggregateTests(
174
- compileFilesInDir(" tests/pos" , picklingOptions, FileFilter .exclude(TestSources .posTestPicklingBlacklisted)),
177
+ compileFilesInDir(" tests/pos" , picklingOptions, FileFilter .exclude(TestSources .posTestPicklingBlacklisted ::: TestSources .scala2LibraryTastyBlacklisted )),
175
178
compileFilesInDir(" tests/run" , picklingOptions, FileFilter .exclude(TestSources .runTestPicklingBlacklisted))
176
179
).checkCompile()
177
180
}
@@ -211,8 +214,8 @@ class CompilationTests {
211
214
@ Test def checkInitGlobal : Unit = {
212
215
implicit val testGroup : TestGroup = TestGroup (" checkInitGlobal" )
213
216
val options = defaultOptions.and(" -Ysafe-init-global" , " -Xfatal-warnings" )
214
- compileFilesInDir(" tests/init-global/neg" , options).checkExpectedErrors()
215
- compileFilesInDir(" tests/init-global/pos" , options).checkCompile()
217
+ compileFilesInDir(" tests/init-global/neg" , options, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ).checkExpectedErrors()
218
+ compileFilesInDir(" tests/init-global/pos" , options, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ).checkCompile()
216
219
}
217
220
218
221
// initialization tests
0 commit comments