mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
16 lines
267 B
Kotlin
Vendored
16 lines
267 B
Kotlin
Vendored
class Foo() {
|
|
fun test(): String = "OK"
|
|
}
|
|
|
|
fun test(s: () -> String): String {
|
|
return s()
|
|
}
|
|
|
|
fun box(): String {
|
|
return test(Foo()::test)
|
|
}
|
|
|
|
// method: CallableFunctionKt$box$1::invoke
|
|
// jvm signature: ()Ljava/lang/String;
|
|
// generic signature: null
|