open class Outer { inner class Nested : Outer() { override fun equals(other: Any?): Boolean { if (this === other) return true return false } } }