Files
kotlin/compiler/testData/codegen/box/callableReference/traitImplMethodWithClassReceiver.kt
Alexander Udalov 054e5fb5e7 Codegen for callable reference expressions
#KT-1183 In Progress
2013-04-22 17:59:32 +04:00

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