Files
kotlin/compiler/testData/codegen/box/defaultArguments/private/primaryConstructor.kt
2018-06-21 13:27:17 +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
}