JVM_IR: add accessors for protected members in divergent hierarchies

Class B : A cannot access a protected field of A through a reference to
an instance of C : A.
This commit is contained in:
pyos
2019-10-24 12:46:48 +02:00
parent 8c6916af52
commit 75aef4633a
4 changed files with 58 additions and 43 deletions
@@ -1087,6 +1087,11 @@ public class BlackBoxAgainstJavaCodegenTestGenerated extends AbstractBlackBoxAga
runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt");
}
@TestMetadata("protectedAccessor.kt")
public void testProtectedAccessor() throws Exception {
runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedAccessor.kt");
}
@TestMetadata("protectedFunInPackage.kt")
public void testProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedFunInPackage.kt");