[FIR] Add test for KT-45584
This commit is contained in:
+6
@@ -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 {
|
||||
|
||||
+20
@@ -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"
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user