Recursive equals: case with recursive not equals + extra tests

This commit is contained in:
Mikhail Glukhikh
2017-11-28 16:45:24 +03:00
parent 13e0ba0836
commit 0d65df4d3e
9 changed files with 88 additions and 18 deletions
@@ -0,0 +1,8 @@
open class Outer {
inner class Nested : Outer() {
override fun equals(other: Any?): Boolean {
if (this@Nested <caret>== other) return true
return false
}
}
}