Files
kotlin-fork/compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt
T
2018-06-09 19:15:38 +03:00

14 lines
240 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE
class A : ArrayList<String>() {
override val size: Int get() = super.size + 56
}
fun box(): String {
val a = A()
if (a.size != 56) return "fail: ${a.size}"
return "OK"
}