Files
kotlin-fork/compiler/testData/codegen/box/traits/traitWithPrivateExtension.kt
T
Zalim Bashorov 8966e220f0 Update tests
2018-08-17 21:44:08 +03:00

31 lines
395 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR
open class B {
val p = "OK"
}
class BB : B()
interface Z<T :B > {
fun T.getString() : String {
return p
}
fun test(s: T) : String {
return s.extension()
}
private fun T.extension(): String {
return getString()
}
}
object Z2 : Z<BB> {
}
fun box() : String {
return Z2.test(BB())
}