1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
12 lines
163 B
Kotlin
12 lines
163 B
Kotlin
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
|
|
}
|