Rewrite Java resolve to use static class scope instead of synthesized packages
#KT-4149 Fixed #KT-4839 Fixed
This commit is contained in:
@@ -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<!>()
|
||||
}
|
||||
Reference in New Issue
Block a user