mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
9 lines
157 B
Plaintext
9 lines
157 B
Plaintext
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"
|
|
}
|