Files
kotlin-fork/js/js.translator/testData/box/extensionFunction/extensionLiteralPassedToFunction.kt
T

7 lines
150 B
Kotlin
Vendored

package foo
fun apply(i: Int, f: Int.(Int) -> Int) = i.f(1);
fun box(): String {
return if (apply(1, { i -> i + this }) == 2) "OK" else "fail"
}