class X { override fun equals(other: Any?): Boolean { if (this == other) return true // recursive equals call return false } }