mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
The same way it's done for function, just call generateBridges for accessors #KT-9442 Fixed
20 lines
275 B
Kotlin
Vendored
20 lines
275 B
Kotlin
Vendored
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"
|
|
}
|