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:
Denis Zharkov
2015-10-06 11:23:12 +03:00
parent c21d827326
commit 252c82abe3
4 changed files with 46 additions and 3 deletions
@@ -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"
}