Joshua F

05/06/2018, 8:44 AM
Anyone else think it'd be worth making an issue on the tracker for intellij to have a warning when using
on the same type in
? This results in an inf loop and took me a little to track down.
Copy code
override fun equals(other: Any?): Boolean {
        if (other == this) {
            return true

        if (other !is Player) {
            return false

        return other.login == login