K2: add a BB test confirming work of KT-63588
This commit is contained in:
committed by
Space Team
parent
9d88e90821
commit
584d98cd72
+6
@@ -21596,6 +21596,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21596,6 +21596,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21525,6 +21525,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21525,6 +21525,12 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21525,6 +21525,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_CODEGEN_WITH_FIR2IR_FAKE_OVERRIDE_GENERATION: JVM_IR
|
||||
// ISSUE: KT-63588
|
||||
|
||||
// FILE: Base.java
|
||||
public class Base {
|
||||
public String getBounds() { return ""; }
|
||||
}
|
||||
|
||||
// FILE: Intermediate.java
|
||||
public class Intermediate extends Base {}
|
||||
|
||||
// FILE: Final.java
|
||||
public class Final extends Intermediate implements WithBounds {}
|
||||
|
||||
// FILE: Main.kt
|
||||
interface WithBounds {
|
||||
val bounds: String
|
||||
}
|
||||
|
||||
fun foo(arg: Final) {
|
||||
arg.bounds
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
foo(Final())
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -21525,6 +21525,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21525,6 +21525,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21525,6 +21525,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+6
@@ -21525,6 +21525,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
|
||||
+5
@@ -17996,6 +17996,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overriddenPropertyInComplexHierarchy.kt")
|
||||
public void testOverriddenPropertyInComplexHierarchy() {
|
||||
runTest("compiler/testData/codegen/box/fir/overriddenPropertyInComplexHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
||||
public void testPublicMethodCallViaPackagePrivateCommon() {
|
||||
runTest("compiler/testData/codegen/box/fir/publicMethodCallViaPackagePrivateCommon.kt");
|
||||
|
||||
Reference in New Issue
Block a user