Add toString() to Any, fix all tests
#KT-4517 Fixed
This commit is contained in:
@@ -3,7 +3,7 @@ package pack
|
||||
open class A(val value: String )
|
||||
|
||||
class B(value: String) : A(value) {
|
||||
fun toString() = "B($value)";
|
||||
override fun toString() = "B($value)";
|
||||
}
|
||||
|
||||
fun box() = if (B("4").toString() == "B(4)") "OK" else "fail"
|
||||
|
||||
Reference in New Issue
Block a user