JVM_IR: use substituted return type in function reference invoke

#KT-46982 Fixed
This commit is contained in:
pyos
2021-05-31 10:46:12 +02:00
committed by Dmitry Petrov
parent 84c10079e4
commit 5c2753b5d1
10 changed files with 52 additions and 2 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
// IGNORE_BACKEND: JS_IR
fun g(b: (Int, (Int) -> String) -> Array<String>): Array<String> =
b(1) { "OK" }
fun box(): String = g(::Array)[0]