Fail with IllegalAccessException on :: reference to private property

Instead of mysterious NoSuchMethodException
This commit is contained in:
Alexander Udalov
2014-06-05 16:51:25 +04:00
parent a8e1de48b8
commit 1275c84f92
4 changed files with 34 additions and 2 deletions
@@ -454,6 +454,11 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/overriddenInSubclass.kt");
}
@TestMetadata("privateClassVal.kt")
public void testPrivateClassVal() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/privateClassVal.kt");
}
@TestMetadata("simpleExtension.kt")
public void testSimpleExtension() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/simpleExtension.kt");