Files
kotlin/compiler/testData/codegen/box/extensionProperties/nonAbstractInInterface.kt
2017-11-03 17:29:44 +03:00

19 lines
287 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"
}