Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/private/primaryConstructor.kt
T
2020-03-10 15:19:34 +03:00

17 lines
219 B
Kotlin
Vendored

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