Files
kotlin-fork/idea/testData/refactoring/rename/inplace/GetToFoo.kt
T
Alexey Sedunov f35af11423 Rename: Make improvements for "by-convention" calls
- Convert between conventions call for 'get' and 'invoke'
- Drop 'operator' when converting 'get'/'invoke' to something other than
  'invoke'/'get' respectively

 #KT-12365 Fixed
2018-02-01 15:41:09 +03:00

7 lines
94 B
Kotlin
Vendored

class A {
operator fun <caret>get(n: Int, s: String) = 1
}
fun test() {
A()[1, "2"]
}