Files
kotlin-fork/compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt
T
2015-11-17 15:41:48 +03:00

11 lines
198 B
Kotlin
Vendored

class A : java.util.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"
}