Files
kotlin/compiler/testData/writeSignature/callableFunction.kt

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