I have a class
open class Texture
and I'd like to define the equals(other: Texture)
operator
operator fun equals(other: Texture) = ...
but I get
Error:(129, 5) Kotlin: 'operator' modifier is inapplicable on this function: must override ''equals()'' in Any
What does it mean?
If I change that to
operator fun equals(other: Any) = ...
Accidental override, two declarations have the same jvm signature