$field is accessible from constructors

This commit is contained in:
Andrey Breslav
2011-04-21 13:05:53 +04:00
parent ca579e25b7
commit 225b81f626
2 changed files with 55 additions and 19 deletions
+5
View File
@@ -14,6 +14,11 @@ class Test {
var b : Int get() = <error>$a</error>; set(x) {a = x; <error>$a</error> = x}
this() {
<error>$b</error> = $a
$a = <error>$b</error>
a = <error>$b</error>
}
fun f() {
<error>$b</error> = <error>$a</error>
a = <error>$b</error>
}