backing fields resolve changed

KT-462 Consider allowing initializing properties via property names when it is safe
KT-598 Allow to use backing fields after this expression
This commit is contained in:
svtk
2011-12-06 22:41:19 +04:00
parent 6f314c09b0
commit ec55dddfcd
36 changed files with 422 additions and 215 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
class Test() {
var a : Int = 111
var b : Int get() = <error>$a</error>; set(x) {a = x; <error>$a</error> = x}
var b : Int get() = $a; set(x) {a = x; $a = x}
this(i : Int) : this() {
<error>$b</error> = $a
@@ -22,7 +22,7 @@ class Test() {
a = <error>$b</error>
}
fun f() {
<error>$b</error> = <error>$a</error>
<error>$b</error> = $a
a = <error>$b</error>
}
}