Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/private/secondaryConstructor.kt
T
2019-11-19 11:00:09 +03:00

18 lines
244 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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
}