JET-9 Support hasBackingField for properties which are parameters of the primary constructor

This commit is contained in:
Andrey Breslav
2011-05-04 14:21:45 +04:00
parent ba221419b4
commit 441bef9935
@@ -33,4 +33,18 @@ class Test() {
var <info>v5</info> : Int <info>get</info>() = 1; <info>set</info>(x){$v5 = x}
var <info>v6</info> : Int <info>get</info>() = $v6 + 1; <info>set</info>(x){}
}
<info>open</info> class Super(i : Int)
class TestPCParameters(w : Int, <info>x</info> : Int, val <info>y</info> : Int, var <info>z</info> : Int) : Super(w) {
val <info>xx</info> = w
{
w + 1
}
fun foo() = x
}