Files
kotlin/compiler/testData/codegen/box/classes/privateToThis.kt
2014-12-08 18:24:30 +03:00

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()
}