Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequired/kt2963.kt
T
2015-05-12 19:43:17 +02:00

16 lines
253 B
Kotlin
Vendored

open class Base
interface Derived : Base {
fun foo(): String {
return object {
fun bar() = baz(this@Derived)
}.bar()
}
}
class DerivedImpl : Derived, Base()
fun baz(b: Base) = "OK"
fun box() = DerivedImpl().foo()