K2 JVM IR: fix access to Java field shadowed by Kotlin property
#KT-56386 Fixed Co-authored-by: Mikhail Glukhikh <Mikhail.Glukhikh@jetbrains.com>
This commit is contained in:
+12
-6
@@ -28737,6 +28737,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaInvisibleFieldAndKotlinPropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaPackagePrivateClassAndPublicField.kt")
|
||||
public void testJavaPackagePrivateClassAndPublicField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassAndPublicField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaPackagePrivateClassExposedViaProtectedStatic.kt")
|
||||
public void testJavaPackagePrivateClassExposedViaProtectedStatic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassExposedViaProtectedStatic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisibleProperty.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisibleProperty() throws Exception {
|
||||
@@ -28749,12 +28761,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyWrite.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyWrite() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyWrite.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinPropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinPropertyReference() throws Exception {
|
||||
|
||||
+12
@@ -253,6 +253,18 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldsWithIntersectionTypes_k1.kt")
|
||||
public void testJavaFieldsWithIntersectionTypes_k1() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes_k1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFields_k1.kt")
|
||||
public void testJavaFields_k1() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/javaFields_k1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaStatics.kt")
|
||||
public void testJavaStatics() throws Exception {
|
||||
|
||||
+12
-6
@@ -28737,6 +28737,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaInvisibleFieldAndKotlinPropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaPackagePrivateClassAndPublicField.kt")
|
||||
public void testJavaPackagePrivateClassAndPublicField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassAndPublicField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaPackagePrivateClassExposedViaProtectedStatic.kt")
|
||||
public void testJavaPackagePrivateClassExposedViaProtectedStatic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassExposedViaProtectedStatic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisibleProperty.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisibleProperty() throws Exception {
|
||||
@@ -28749,12 +28761,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyWrite.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyWrite() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyWrite.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinPropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinPropertyReference() throws Exception {
|
||||
|
||||
+12
@@ -253,6 +253,18 @@ public class FirPsiBytecodeTextTestGenerated extends AbstractFirPsiBytecodeTextT
|
||||
runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldsWithIntersectionTypes_k1.kt")
|
||||
public void testJavaFieldsWithIntersectionTypes_k1() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes_k1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFields_k1.kt")
|
||||
public void testJavaFields_k1() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/javaFields_k1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaStatics.kt")
|
||||
public void testJavaStatics() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user