mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
18 lines
257 B
Kotlin
Vendored
18 lines
257 B
Kotlin
Vendored
inline class I(val i: Int)
|
|
|
|
abstract class A {
|
|
abstract fun f(i: I): String
|
|
}
|
|
|
|
open class B : A() {
|
|
override fun f(i: I): String = "OK"
|
|
}
|
|
|
|
class C : B() {
|
|
override fun f(i: I): String = super.f(i)
|
|
}
|
|
|
|
fun box(): String {
|
|
return C().f(I(0))
|
|
}
|