Add test for KT-55931

This commit is contained in:
Denis.Zharkov
2023-01-13 16:34:20 +01:00
committed by Space Team
parent d18672bfb1
commit a37e3def14
6 changed files with 110 additions and 0 deletions
@@ -14904,6 +14904,22 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/inference/callableReferences")
@TestDataPath("$PROJECT_ROOT")
public class CallableReferences {
@Test
public void testAllFilesPresentInCallableReferences() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/callableReferences"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("kt55931.kt")
public void testKt55931() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/callableReferences/kt55931.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes")
@TestDataPath("$PROJECT_ROOT")