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