Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/dontShareReceiver.kt
T
2020-03-28 15:26:19 +03:00

12 lines
244 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
var state = 0
val f = (state++)::toString
val s1 = f()
if (s1 != "0") return "fail 1: $s1"
++state
val s2 = f()
if (s2 != "0") return "fail 2: $s2"
return "OK"
}