73799e2c3c
It's done with similar constructions where possible trying to preserve intended behavior. Some usages are removed because they test exactly the feature that we are going to drop soon.
10 lines
177 B
Kotlin
Vendored
10 lines
177 B
Kotlin
Vendored
package foo
|
|
|
|
fun box(): Boolean {
|
|
val v1 = 1.(fun Int.(x: Int) = this + x)(2)
|
|
|
|
val f = fun Int.(x: Int) = this + x
|
|
val v2 = 1.(f)(2)
|
|
|
|
return v1 == 3 && v2 == 3
|
|
} |