Rewrite Java resolve to use static class scope instead of synthesized packages

#KT-4149 Fixed
 #KT-4839 Fixed
This commit is contained in:
Alexander Udalov
2014-09-03 14:42:03 +04:00
parent 75df4a9ad8
commit bcfb5f3b09
41 changed files with 217 additions and 419 deletions
@@ -0,0 +1,18 @@
// KT-4149 static members of Java private nested class are accessible from Kotlin
// FILE: javaPackage/Foo.java
package javaPackage;
public class Foo {
private static class Bar {
public static void doSmth() {
}
}
}
// FILE: 1.kt
fun main(args: Array<String>) {
javaPackage.Foo.Bar.<!INVISIBLE_MEMBER!>doSmth<!>()
}