Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/operatorCalls/set.kt
T
2020-07-03 21:10:24 +07:00

12 lines
265 B
Kotlin
Vendored

// "Replace usages of 'set(Int, Int): Unit' in whole project" "true"
interface T {
@Deprecated("", replaceWith = ReplaceWith("set2(i, v)"))
operator fun set(i: Int, v: Int)
fun set2(i: Int, v: Int)
}
fun test(t: T) {
<caret>t[0] = 1
t[1] = 2
}