Files
kotlin-fork/compiler/testData/codegen/dataClasses/overriddenProperty.kt
T
2012-09-07 19:00:02 +04:00

12 lines
172 B
Kotlin

open data class A(open val x: String)
class B : A("OK") {
override val x: String = "Fail"
}
fun foo(a: A) = a.component1()
fun box(): String {
return foo(B())
}