mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
12 lines
140 B
Kotlin
12 lines
140 B
Kotlin
trait T {
|
|
fun foo() = "OK"
|
|
}
|
|
|
|
class B : T {
|
|
inner class C {
|
|
fun bar() = this@B.(::foo)()
|
|
}
|
|
}
|
|
|
|
fun box() = B().C().bar()
|