JET-65 Identifier in initializer block resolves to constructor parameter instead of property

+
Scopes for secondary constructors fixed
This commit is contained in:
Andrey Breslav
2011-06-02 13:35:45 +04:00
parent 826936785a
commit 7a8ea7fd88
3 changed files with 56 additions and 16 deletions
@@ -0,0 +1,18 @@
class Foo(var bar : Int, barr : Int, val barrr : Int) {
{
bar = 1
barr = 1
barrr = 1
1 : Int
this : Foo
}
this(val bar : Int) : this(1, 1, 1) {
bar = 1
this.bar
1 : Int
val a : Int =1
this : Foo
}
}