Files
kotlin-fork/compiler/testData/codegen/box/bridges/propertyInConstructor.kt
T

12 lines
163 B
Kotlin
Vendored

interface A<T> {
var x: T
}
class B(override var x: String) : A<String>
fun box(): String {
val a: A<String> = B("Fail")
a.x = "OK"
return a.x
}