K2: add test to reproduce KT-63233

This commit is contained in:
Mikhail Glukhikh
2023-12-20 13:10:26 +01:00
committed by Space Team
parent b6d2d23f41
commit 7f7bc1f36c
7 changed files with 44 additions and 0 deletions
@@ -43176,6 +43176,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendLambda.kt");
}
@Test
@TestMetadata("suspendNotImplemented.kt")
public void testSuspendNotImplemented() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendNotImplemented.kt");
}
@Test
@TestMetadata("suspendOverridability.kt")
public void testSuspendOverridability() throws Exception {
@@ -43176,6 +43176,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendLambda.kt");
}
@Test
@TestMetadata("suspendNotImplemented.kt")
public void testSuspendNotImplemented() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendNotImplemented.kt");
}
@Test
@TestMetadata("suspendOverridability.kt")
public void testSuspendOverridability() throws Exception {
@@ -40902,6 +40902,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendLambda.kt");
}
@Test
@TestMetadata("suspendNotImplemented.kt")
public void testSuspendNotImplemented() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendNotImplemented.kt");
}
@Test
@TestMetadata("suspendOverridability.kt")
public void testSuspendOverridability() throws Exception {
@@ -41022,6 +41022,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendLambda.kt");
}
@Test
@TestMetadata("suspendNotImplemented.kt")
public void testSuspendNotImplemented() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendNotImplemented.kt");
}
@Test
@TestMetadata("suspendOverridability.kt")
public void testSuspendOverridability() throws Exception {
@@ -0,0 +1,7 @@
// ISSUE: KT-63233, KT-59818
interface A {
suspend fun foo()
}
class B : A
@@ -0,0 +1,7 @@
// ISSUE: KT-63233, KT-59818
interface A {
suspend fun foo()
}
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>class B<!> : A
@@ -43176,6 +43176,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendLambda.kt");
}
@Test
@TestMetadata("suspendNotImplemented.kt")
public void testSuspendNotImplemented() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendNotImplemented.kt");
}
@Test
@TestMetadata("suspendOverridability.kt")
public void testSuspendOverridability() throws Exception {