Files
kotlin-fork/js/js.translator/testData/expression/invoke/cases/invokeInExtensionFunctionLiteral.kt
T
Denis Zharkov 73799e2c3c Replace deprecated lambda syntax in testData
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.
2015-09-25 08:29:25 +03:00

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
}