JVM_IR: do not use fields' superQualifierSymbol to cast the receiver

It's only for computing the field owner.

 #KT-42131 Fixed
This commit is contained in:
pyos
2020-09-24 11:25:38 +02:00
committed by Alexander Udalov
parent a57c95624d
commit f30e564c90
4 changed files with 37 additions and 24 deletions
@@ -1183,6 +1183,11 @@ public class BlackBoxAgainstJavaCodegenTestGenerated extends AbstractBlackBoxAga
runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedStaticClass.kt");
}
@TestMetadata("protectedSuperField.kt")
public void testProtectedSuperField() throws Exception {
runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt");
}
@TestMetadata("protectedSuperMethod.kt")
public void testProtectedSuperMethod() throws Exception {
runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt");