diff --git a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/Weighers.kt b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/Weighers.kt index f6ebbe5ed91..4abed12ea1c 100644 --- a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/Weighers.kt +++ b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/Weighers.kt @@ -161,7 +161,7 @@ object CallableWeigher : LookupElementWeigher("kotlin.callableWeight") { other } - private class CompoundWeight(val weight1: Weight1, val receiverIndex: Int, val weight2: Weight2) : Comparable { + private data class CompoundWeight(val weight1: Weight1, val receiverIndex: Int, val weight2: Weight2) : Comparable { override fun compareTo(other: CompoundWeight): Int { if (weight1 != other.weight1) return weight1.compareTo(other.weight1) if (receiverIndex != other.receiverIndex) return receiverIndex.compareTo(other.receiverIndex)