Files
kotlin-fork/compiler/testData/codegen/box/properties/kt1417.kt
T
2019-11-19 11:00:09 +03:00

11 lines
222 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"