mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Add some new tests on functions and extension functions
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user