Files
kotlin-fork/compiler/testData/codegen/box/properties/kt1417.kt
T
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00

10 lines
192 B
Kotlin

package pack
open class A(val value: String )
class B(value: String) : A(value) {
override fun toString() = "B($value)";
}
fun box() = if (B("4").toString() == "B(4)") "OK" else "fail"