Introduce special CAPTURED_VAL_INITIALIZATION for members

This commit is contained in:
Mikhail Glukhikh
2017-05-02 15:01:41 +03:00
parent 56e633e345
commit 28283bad3e
10 changed files with 52 additions and 4 deletions
@@ -0,0 +1,16 @@
// "Make variable mutable" "true"
class Test {
var a: String
init {
val t = object {
fun some() {
a = "12"
}
}
a = "2"
t.some()
}
}