mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
10 lines
113 B
Kotlin
Vendored
10 lines
113 B
Kotlin
Vendored
interface A {
|
|
fun foo(): String
|
|
}
|
|
|
|
class B : A {
|
|
override fun foo() = "OK"
|
|
}
|
|
|
|
fun box() = B().(A::foo)()
|