JVM_IR: support function references with default parameters

This commit is contained in:
Georgy Bronnikov
2019-09-24 20:52:02 +03:00
parent 1a7f1dff10
commit 1abdcf3f57
9 changed files with 62 additions and 5 deletions
@@ -0,0 +1,8 @@
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
// IGNORE_BACKEND: JS_IR
inline fun String.app(f: (String) -> String) = f(this)
fun fff(s: String, n: Int = 42) = s
fun box() = "OK".app(::fff)