Files
kotlin-fork/js/js.translator/testData/box/simple/secCtorDelegation4.kt
T
2018-09-12 09:49:25 +03:00

26 lines
373 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1287
package foo
class Test(val bs: String) {
var i: Int = 0
var i2: Int = 0
var i3: Int =0
constructor(ii1: Int, ii2: Int): this("OK") {
i = ii1
i2 = ii2
i3 = 30
}
constructor(ii: Int): this(ii, 18) {
}
fun foo() = bs
}
fun box(): String {
val t = Test(1)
return t.foo()
}