[VISUALIZER] Change rendering of equality operator

This commit is contained in:
Ivan Kylchik
2021-02-15 12:46:54 +03:00
committed by TeamCityServer
parent c678ad9eb9
commit cc7d82ab7b
7 changed files with 97 additions and 11 deletions
@@ -0,0 +1,19 @@
class A(val a: Int) {
override fun equals(other: Any?): Boolean {
if (other !is A) return false
return this.a == other.a
}
}
open class B(val b: Int) {
override fun equals(other: Any?): Boolean {
if (other !is B) return false
return this.b == other.b
}
}
class C(c: Int): B(c) {}
val areEqual = A(10) == A(11)
val areEqual2 = C(10) == C(11)
val areEqual3 = A(10) == C(11)