FIR2IR: add local delegated property generation
This commit is contained in:
+3
-2
@@ -14,7 +14,8 @@ class Delegate {
|
||||
|
||||
fun box(): String {
|
||||
var prop: Int by Delegate()
|
||||
if (prop != 1) return "fail get 1"
|
||||
run { prop = 2 }
|
||||
if (prop != 2) return "fail get"
|
||||
return run { if (prop != 2) "fail set" else "OK" }
|
||||
if (prop != 2) return "fail get 2"
|
||||
return run { if (prop != 2) "fail get 3" else "OK" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user