[JS_IR] Don't capture the bound receiver of a CR

This commit is contained in:
Igor Chevdar
2020-03-25 21:49:50 +03:00
parent 643e581448
commit 90abf1fda0
8 changed files with 67 additions and 14 deletions
@@ -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"
}