mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
11 lines
296 B
Java
Vendored
11 lines
296 B
Java
Vendored
import kotlin.jvm.functions.Function2;
|
|
import kotlin.reflect.KMemberFunction;
|
|
|
|
public class J {
|
|
public static String go() {
|
|
KMemberFunction<K, String> fun = K.Companion.getRef();
|
|
Object result = ((Function2) fun).invoke(new K(), "KO");
|
|
return (String) result;
|
|
}
|
|
}
|