Fix incorrect 'original' in property accessors
#KT-3930 Fixed
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user