Generate bridges for FAKE_OVERRIDE properties
The same way it's done for function, just call generateBridges for accessors #KT-9442 Fixed
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
open class A<T> {
|
||||
var size: T = 56 as T
|
||||
}
|
||||
|
||||
interface C {
|
||||
var size: Int
|
||||
}
|
||||
|
||||
class B : C, A<Int>()
|
||||
|
||||
fun box(): String {
|
||||
val b = B()
|
||||
if (b.size != 56) return "fail 1: ${b.size}"
|
||||
|
||||
b.size = 55
|
||||
if (b.size != 55) return "fail 2: ${b.size}"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user