7a22ad099a
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
7 lines
127 B
Kotlin
7 lines
127 B
Kotlin
package foo
|
|
|
|
fun apply(i: Int, f: Int.(Int) -> Int) = i.f(1);
|
|
|
|
fun box(): Boolean {
|
|
return apply(1, {i -> i + this}) == 2
|
|
} |