मैं एक वर्गसमस्याएं बराबरी को परिभाषित() ऑपरेटर
open class Texture
है और मैं equals(other: Texture)
ऑपरेटर
operator fun equals(other: Texture) = ...
का निर्धारण कैसे करेंगे, लेकिन मैं
Error:(129, 5) Kotlin: 'operator' modifier is inapplicable on this function: must override ''equals()'' in Any
मिल क्या क्या इसका मतलब यह कि?
अगर मैं बदल कि करने के लिए
operator fun equals(other: Any) = ...
Accidental override, two declarations have the same jvm signature
सवाल का अद्यतन की वजह से इस सवाल का जवाब अपडेट किया जा सकता है। – hotkey
आप कार्य के लिए कैसे की व्यवस्था है 'FALSE' वापस जाने के लिए जब' 'other' Texture' का एक उदाहरण नहीं है? – saulspatz