[FIR] Add a blackbox test for KT-65972
This commit is contained in:
committed by
Space Team
parent
da6006b7d0
commit
e929ed8f8c
+6
@@ -31621,6 +31621,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -31621,6 +31621,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -31490,6 +31490,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -31490,6 +31490,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -31490,6 +31490,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// SKIP_JDK6
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
// FILE: IntCollection.java
|
||||
interface IntCollection<E> {
|
||||
public boolean add(int key);
|
||||
}
|
||||
|
||||
// FILE: IntSet.java
|
||||
interface IntSet extends IntCollection {
|
||||
public default boolean add(Integer it) { return true; }
|
||||
|
||||
// from the supertype
|
||||
// public boolean add(int key);
|
||||
}
|
||||
|
||||
// FILE: AbstractCollection.java
|
||||
abstract class AbstractCollection<E> {
|
||||
public boolean add(E it) { return true; }
|
||||
}
|
||||
|
||||
// FILE: AbstractIntCollection.java
|
||||
abstract class AbstractIntCollection extends AbstractCollection<Integer> {
|
||||
public boolean add(int it) { return true; }
|
||||
|
||||
// from the supertype
|
||||
// public default boolen add(Integer it) { return true; }
|
||||
}
|
||||
|
||||
// FILE: AbstractIntSet.java
|
||||
public abstract class AbstractIntSet extends AbstractIntCollection implements IntSet {}
|
||||
|
||||
// FILE: Main.kt
|
||||
|
||||
class KotlinClass : AbstractIntSet()
|
||||
|
||||
fun box() = "OK".also { KotlinClass() }
|
||||
+6
@@ -31490,6 +31490,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -29666,6 +29666,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -31490,6 +31490,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+6
@@ -31490,6 +31490,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
|
||||
+5
@@ -26668,6 +26668,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionWithMultipleDefaultsInJava.kt")
|
||||
public void testIntersectionWithMultipleDefaultsInJava() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/intersectionWithMultipleDefaultsInJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableInt.kt")
|
||||
public void testNullableInt() {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/primitiveVsWrapperTypeInInheritance/nullableInt.kt");
|
||||
|
||||
Reference in New Issue
Block a user