mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
231 B
Kotlin
Vendored
12 lines
231 B
Kotlin
Vendored
class A<in I>(init_o: I, private val init_k: I) {
|
|
private val o: I = init_o
|
|
private fun k(): I = init_k
|
|
|
|
fun getOk() = o.toString() + k().toString()
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A("O", "K")
|
|
return a.getOk()
|
|
}
|