// COMPILER_ARGUMENTS: -XXLanguage:+DataObjects // PROBLEM: none open class Base { override fun equals(other: Any?): Boolean = other is Any } object Foo : Base() { override fun toString(): String = "Foo" }