KT-1531 Frontend should prohibit secondary constructors

# KT-1531 Fixed
This commit is contained in:
Svetlana Isakova
2012-03-27 17:48:04 +04:00
parent 406933557b
commit a91a53f7f1
22 changed files with 53 additions and 52 deletions
@@ -7,11 +7,11 @@ class Foo(var bar : Int, var barr : Int, var barrr : Int) {
this : Foo
}
this(var bar : Int) : this(1, 1, 1) {
<!SECONDARY_CONSTRUCTORS_ARE_NOT_SUPPORTED!>this(var bar : Int) : this(1, 1, 1) {
bar = <!UNUSED_VALUE!>1<!>
this.bar
1 : Int
val <!UNUSED_VARIABLE!>a<!> : Int =1
this : Foo
}
}
}<!>
}