2f86554d5a
Note that only irrelevantStaticProperty.kt failed before this change. Having private declarations caused no problems, but it seems incorrect, so it's fixed now and irrelevantPrivateDeclarations is added just in case. #KT-41848 Fixed
30 lines
431 B
Kotlin
Vendored
30 lines
431 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// JVM_TARGET: 1.8
|
|
// FILE: box.kt
|
|
|
|
fun test(f: (String) -> Unit) {
|
|
A.s(f)
|
|
}
|
|
|
|
fun box(): String {
|
|
var result = "Fail"
|
|
test { result = it }
|
|
return result
|
|
}
|
|
|
|
// FILE: A.java
|
|
|
|
public interface A<T> {
|
|
void f(T t);
|
|
|
|
A<Object> N = new A<Object>() {
|
|
@Override
|
|
public void f(final Object object) {
|
|
}
|
|
};
|
|
|
|
static void s(A<String> a) {
|
|
a.f("OK");
|
|
}
|
|
}
|