mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
13 lines
261 B
Kotlin
Vendored
13 lines
261 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
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()
|
|
}
|