Private outer functions are now accessed via bridge methods. Added tests.

This commit is contained in:
Evgeny Gerashchenko
2012-06-19 22:34:22 +04:00
parent 993aecbc94
commit 5ecfd71611
4 changed files with 86 additions and 4 deletions
@@ -231,6 +231,16 @@ public class ClassGenTest extends CodegenTestCase {
blackBox();
}
public void testPrivateOuterProperty() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("classes/privateOuterProperty.kt");
}
public void testPrivateOuterFunctions() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("classes/privateOuterFunctions.kt");
}
public void testKt249() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt249.jet");