[FIR] Ignore the operator keyword when checking conflicting overloads
^KT-59880
This commit is contained in:
committed by
Space Team
parent
09436d0480
commit
df6f51b49f
-3
@@ -75,9 +75,6 @@ internal object FirRedeclarationPresenter {
|
|||||||
|
|
||||||
fun represent(it: FirNamedFunctionSymbol) = buildString {
|
fun represent(it: FirNamedFunctionSymbol) = buildString {
|
||||||
appendRepresentationBeforeCallableId(it)
|
appendRepresentationBeforeCallableId(it)
|
||||||
if (it.isOperator) {
|
|
||||||
append("operator ")
|
|
||||||
}
|
|
||||||
appendRepresentation(it.callableId)
|
appendRepresentation(it.callableId)
|
||||||
appendValueParameters(it)
|
appendValueParameters(it)
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
data class A(val x: Int, val y: String) {
|
data class <!CONFLICTING_OVERLOADS, CONFLICTING_OVERLOADS!>A(val x: Int, val y: String)<!> {
|
||||||
fun component1() = 1
|
<!CONFLICTING_OVERLOADS!>fun component1()<!> = 1
|
||||||
fun component2() = 2
|
<!CONFLICTING_OVERLOADS!>fun component2()<!> = 2
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user