[FIR] Reproduce KT-57100

This commit is contained in:
Nikolay Lunyak
2023-09-18 15:07:58 +03:00
committed by Space Team
parent 3116e26204
commit 973248f432
7 changed files with 58 additions and 0 deletions
@@ -1251,6 +1251,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suspendConflictingOverloads.kt")
public void testSuspendConflictingOverloads() throws Exception {
runTest("compiler/testData/diagnostics/tests/suspendConflictingOverloads.kt");
}
@Test
@TestMetadata("suspendFunAndPrivateJava.kt")
public void testSuspendFunAndPrivateJava() throws Exception {
@@ -1251,6 +1251,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suspendConflictingOverloads.kt")
public void testSuspendConflictingOverloads() throws Exception {
runTest("compiler/testData/diagnostics/tests/suspendConflictingOverloads.kt");
}
@Test
@TestMetadata("suspendFunAndPrivateJava.kt")
public void testSuspendFunAndPrivateJava() throws Exception {
@@ -1251,6 +1251,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suspendConflictingOverloads.kt")
public void testSuspendConflictingOverloads() throws Exception {
runTest("compiler/testData/diagnostics/tests/suspendConflictingOverloads.kt");
}
@Test
@TestMetadata("suspendFunAndPrivateJava.kt")
public void testSuspendFunAndPrivateJava() throws Exception {
@@ -1251,6 +1251,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suspendConflictingOverloads.kt")
public void testSuspendConflictingOverloads() throws Exception {
runTest("compiler/testData/diagnostics/tests/suspendConflictingOverloads.kt");
}
@Test
@TestMetadata("suspendFunAndPrivateJava.kt")
public void testSuspendFunAndPrivateJava() throws Exception {
@@ -0,0 +1,14 @@
// ISSUE: KT-57100
// WITH_STDLIB
interface C07I01{
fun some() {}
}
interface C07I02{
suspend fun some() {}
}
class C07C01: C07I01, C07I02 {
override fun some() {}
}
@@ -0,0 +1,14 @@
// ISSUE: KT-57100
// WITH_STDLIB
interface C07I01{
fun some() {}
}
interface C07I02{
suspend fun some() {}
}
class C07C01: C07I01, C07I02 {
<!CONFLICTING_OVERLOADS!>override fun some()<!> {}
}
@@ -1251,6 +1251,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suspendConflictingOverloads.kt")
public void testSuspendConflictingOverloads() throws Exception {
runTest("compiler/testData/diagnostics/tests/suspendConflictingOverloads.kt");
}
@Test
@TestMetadata("suspendFunAndPrivateJava.kt")
public void testSuspendFunAndPrivateJava() throws Exception {