Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/private/secondaryConstructor.kt
T
2018-06-09 19:15:38 +03:00

18 lines
239 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
var state: String = "Fail"
class A {
private constructor(x: String = "OK") {
state = x
}
companion object {
fun foo() = A()
}
}
fun box(): String {
A.foo()
return state
}