Files
kotlin-fork/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/privateConstructorWithPrivateField.kt
T
2021-03-22 21:57:07 +01:00

15 lines
272 B
Kotlin
Vendored

// WITH_RUNTIME
// MODULE: lib
// FILE: A.kt
inline class A private constructor(private val value: String) {
constructor(c: Char) : this(c + "K")
val publicValue: String get() = value
}
// MODULE: main(lib)
// FILE: B.kt
fun box(): String = A('O').publicValue