KT-1531 Frontend should prohibit secondary constructors
# KT-1531 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}<!>
|
||||
}
|
||||
Reference in New Issue
Block a user