Files
kotlin-fork/compiler/testData/codegen/box/extensionProperties/nonAbstractInInterface.kt
T
2020-10-01 17:49:02 +03:00

20 lines
288 B
Kotlin
Vendored

interface I {
val String.foo: String
get() = this + ";" + bar()
fun bar(): String
}
class C : I {
override fun bar() = "C.bar"
fun test() = "test".foo
}
fun box(): String {
val r = C().test()
if (r != "test;C.bar") return "fail: $r"
return "OK"
}