blob: e5a64f7cb385f1cef1be1a4954196b66857f0e50 [file] [log] [blame]
// FILE: F.java
import java.util.function.Function;
public class F {
public static <T, U> U passNull(Function<? super T, ? extends U> f) {
return f.apply(null);
}
}
// FILE: test.kt
// WITH_RUNTIME
// FULL_JDK
fun test(f: (Int?) -> String): String {
return F.passNull(f)
}
fun box(): String {
return test {
it?.toString() ?: "OK"
}
}