[FIR] Add test for KT-45584

This commit is contained in:
Dmitriy Novozhilov
2021-03-19 17:34:51 +03:00
parent f4afc2ef44
commit e00e726bcb
5 changed files with 43 additions and 0 deletions
@@ -21124,6 +21124,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt");
}
@Test
@TestMetadata("conflictingOverloadsForThrowableInheritors.kt")
public void testConflictingOverloadsForThrowableInheritors() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt");
}
@Test
@TestMetadata("genericSamProjectedOut.kt")
public void testGenericSamProjectedOut() throws Exception {
@@ -0,0 +1,20 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FULL_JDK
// ISSUE: KT-45584
// FILE: PlaceholderExceptionSupport.java
public interface PlaceholderExceptionSupport {
String getMessage();
}
// FILE: PlaceholderException.java
public class PlaceholderException extends RuntimeException implements PlaceholderExceptionSupport {}
// FILE: main.kt
class KotlinTestFailure : PlaceholderException() {} // <-- CONFLICTING_INHERITED_JVM_DECLARATIONS
fun box(): String = "OK"
@@ -21124,6 +21124,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt");
}
@Test
@TestMetadata("conflictingOverloadsForThrowableInheritors.kt")
public void testConflictingOverloadsForThrowableInheritors() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt");
}
@Test
@TestMetadata("genericSamProjectedOut.kt")
public void testGenericSamProjectedOut() throws Exception {
@@ -21124,6 +21124,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt");
}
@Test
@TestMetadata("conflictingOverloadsForThrowableInheritors.kt")
public void testConflictingOverloadsForThrowableInheritors() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt");
}
@Test
@TestMetadata("genericSamProjectedOut.kt")
public void testGenericSamProjectedOut() throws Exception {
@@ -17692,6 +17692,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt");
}
@TestMetadata("conflictingOverloadsForThrowableInheritors.kt")
public void testConflictingOverloadsForThrowableInheritors() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt");
}
@TestMetadata("genericSamProjectedOut.kt")
public void testGenericSamProjectedOut() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/genericSamProjectedOut.kt");