18 lines
354 B
Kotlin
Vendored
18 lines
354 B
Kotlin
Vendored
// 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() {
|
|
javaPackage.Foo.<!INVISIBLE_REFERENCE!>Bar<!>.<!INVISIBLE_MEMBER!>doSmth<!>()
|
|
} |