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

11 lines
219 B
Kotlin
Vendored

// "Replace with 'get2(i)'" "true"
interface T {
@Deprecated("", replaceWith = ReplaceWith("get2(i)"))
operator fun get(i: Int): String
fun get2(i: Int): String
}
fun test(t: T) {
val s = <caret>t[0]
}