data class Foo(val name: String) { override fun equals(other: Any?): Boolean { return super.equals(other) } }