KT-2363 Drop secondary constructors
#KT-2363 Fixed
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
class C(val n: Int, val s: String) {
|
||||
this(n: Int): this(n, "foo") { }
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val c = C(10)
|
||||
return if (c.s == "foo") "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user