Fix generic signature for KFunctionN types on JVM

#KT-15473 Fixed
This commit is contained in:
Alexander Udalov
2016-12-29 19:15:47 +03:00
parent bf3b5281a9
commit 0dbb02ec6a
12 changed files with 152 additions and 58 deletions
@@ -0,0 +1,15 @@
class Foo() {
fun test(): String = "OK"
}
fun test(s: () -> String): String {
return s()
}
fun box(): String {
return test(Foo()::test)
}
// method: FunctionReferenceInvokeKt$box$1::invoke
// jvm signature: ()Ljava/lang/String;
// generic signature: null