liusbl
01/17/2018, 2:32 PMclass Test {
fun test() {
val a = A()
val b = a.equals(1) // Compiles, but suggests converting to '=='
val c = a == 1 // Does not compile ??
}
}
class A {
override fun equals(other: Any?): Boolean {
return true
}
}