JVM_IR: support function references with default parameters
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user