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
+6 -6
View File
@@ -13,19 +13,19 @@ class <error>NoPC</error> {
}
class WithPC0() {
this(a : Int) : this() {}
<warning>this(a : Int) : this() {}</warning>
}
class WithPC1(a : Int) {
<error>this</error>() {}
<warning><error>this</error>() {}</warning>
this(b : Long) : this("") {}
<warning>this(b : Long) : this("") {}</warning>
this(s : String) : this(1) {}
<warning>this(s : String) : this(1) {}</warning>
this(b : Char) : <error>this</error>("", 2) {}
<warning>this(b : Char) : <error>this</error>("", 2) {}</warning>
this(b : Byte) : this(""), <error>this(1)</error> {}
<warning>this(b : Byte) : this(""), <error>this(1)</error> {}</warning>
}