Tests: add regression test for KT-63448

This commit is contained in:
Alexander Udalov
2024-02-14 10:35:28 +01:00
committed by Space Team
parent 72e30a3d26
commit 41ef3da5ff
10 changed files with 75 additions and 0 deletions
@@ -33428,6 +33428,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -33428,6 +33428,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -33073,6 +33073,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -33073,6 +33073,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -33073,6 +33073,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -0,0 +1,22 @@
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// MODULE: lib
// FILE: A.java
public class A {
final public boolean isVisible() {
return true;
}
}
// FILE: B.kt
abstract class B : A() {
@JvmField
protected var isVisible = false
}
// MODULE: main(lib)
// FILE: box.kt
class C : B()
fun box(): String =
if (C().isVisible()) "OK" else "Fail"
@@ -33073,6 +33073,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -33073,6 +33073,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -33073,6 +33073,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@Test
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@Test
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
@@ -28132,6 +28132,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
}
@TestMetadata("noClashWithInheritedJavaMethod.kt")
public void testNoClashWithInheritedJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/noClashWithInheritedJavaMethod.kt");
}
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/publicField.kt");