@@ -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.
@@ -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