@@ -44,7 +44,10 @@ class CompilationTests {
4444 // Run tests for legacy lazy vals
4545 compileFilesInDir(" tests/pos" , defaultOptions.and(" -Ysafe-init" , " -Ylegacy-lazy-vals" , " -Ycheck-constraint-deps" ), FileFilter .include(TestSources .posLazyValsAllowlist)),
4646 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))
4851 )
4952
5053 if scala.util.Properties .isJavaAtLeast(" 16" ) then
@@ -130,7 +133,7 @@ class CompilationTests {
130133 @ Test def negAll : Unit = {
131134 implicit val testGroup : TestGroup = TestGroup (" compileNeg" )
132135 aggregateTests(
133- compileFilesInDir(" tests/neg" , defaultOptions),
136+ compileFilesInDir(" tests/neg" , defaultOptions, FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ),
134137 compileFilesInDir(" tests/neg-deep-subtype" , allowDeepSubtypes),
135138 compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" )),
136139 compileFile(" tests/neg-custom-args/sourcepath/outer/nested/Test1.scala" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath" )),
@@ -153,7 +156,7 @@ class CompilationTests {
153156 @ Test def runAll : Unit = {
154157 implicit val testGroup : TestGroup = TestGroup (" runAll" )
155158 aggregateTests(
156- compileFilesInDir(" tests/run" , defaultOptions.and(" -Ysafe-init" )),
159+ compileFilesInDir(" tests/run" , defaultOptions.and(" -Ysafe-init" ), FileFilter .exclude( TestSources .scala2LibraryTastyBlacklisted) ),
157160 compileFilesInDir(" tests/run-deep-subtype" , allowDeepSubtypes),
158161 compileFilesInDir(" tests/run-custom-args/captures" , allowDeepSubtypes.and(" -language:experimental.captureChecking" )),
159162 // Run tests for legacy lazy vals.
@@ -213,8 +216,8 @@ class CompilationTests {
213216 @ Test def checkInitGlobal : Unit = {
214217 implicit val testGroup : TestGroup = TestGroup (" checkInitGlobal" )
215218 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()
218221 }
219222
220223 // initialization tests
0 commit comments