7d59c7689c
Due to the direct invoke optimization, most callable reference tests were not generating callable references/lambdas.
15 lines
202 B
Kotlin
Vendored
15 lines
202 B
Kotlin
Vendored
class P {
|
|
var x : Int = 0
|
|
private set
|
|
|
|
fun foo() {
|
|
({ x = 4 }).let { it() }
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
val p = P()
|
|
p.foo()
|
|
return if (p.x == 4) "OK" else "fail"
|
|
}
|