JS: fix non-abstract extension properties in interfaces
KT-20994
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user