Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/bridges/genericProperty.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03:00

20 lines
275 B
Kotlin

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"
}