Tests: add regression test for KT-63448
This commit is contained in:
committed by
Space Team
parent
72e30a3d26
commit
41ef3da5ff
+6
@@ -33428,6 +33428,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+6
@@ -33428,6 +33428,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+6
@@ -33073,6 +33073,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+6
@@ -33073,6 +33073,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+6
@@ -33073,6 +33073,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
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"
|
||||||
+6
@@ -33073,6 +33073,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+6
@@ -33073,6 +33073,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+6
@@ -33073,6 +33073,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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
|
@Test
|
||||||
@TestMetadata("publicField.kt")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
|
|||||||
+5
@@ -28132,6 +28132,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt");
|
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")
|
@TestMetadata("publicField.kt")
|
||||||
public void testPublicField() throws Exception {
|
public void testPublicField() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/jvmField/publicField.kt");
|
runTest("compiler/testData/codegen/box/jvmField/publicField.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user