Fix incorrect 'original' in property accessors

#KT-3930 Fixed
This commit is contained in:
Alexander Udalov
2015-06-15 21:51:42 +03:00
parent 7c846388bd
commit 98ce0d529c
10 changed files with 104 additions and 37 deletions
@@ -0,0 +1,23 @@
interface A {
var bar: Boolean
get() = false
set(value) { throw AssertionError("Fail set") }
}
interface B : A
interface C : A {
override var bar: Boolean
get() = true
set(value) {}
}
interface D : B, C
class Impl : D
fun box(): String {
Impl().bar = false
if (!Impl().bar) return "Fail get"
return "OK"
}
@@ -0,0 +1,10 @@
interface A {
val str: String
get() = "OK"
}
interface B : A
class Impl : B
fun box() = Impl().str