[JS_IR] Don't capture the bound receiver of a CR
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user