Rename: Drop 'operator' keyword if new name doesn't correspond to any convention
#KT-9357 Fixed
This commit is contained in:
idea/testData/refactoring/rename/renameExplicitComponentFunction/before/explicitComponentFunction.kt
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
||||
class A(val n: Int, val s: String, val o: Any) {
|
||||
fun component1(): Int = n
|
||||
fun component2(): String = s
|
||||
fun component3(): Any = o
|
||||
operator fun component1(): Int = n
|
||||
operator fun component2(): String = s
|
||||
operator fun component3(): Any = o
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Reference in New Issue
Block a user