Inline refactoring: should support set/get operator

#KT-17378 Fixed
This commit is contained in:
Dmitry Gridin
2020-07-03 17:20:45 +07:00
parent e31ea0c243
commit 62e252ec26
6 changed files with 60 additions and 4 deletions
@@ -0,0 +1,13 @@
class Declaration {
operator fun <T> <caret>set(i: Int, e: T) {
println(i)
println(e)
}
}
fun call() {
val declaration = Declaration()
declaration.set(4, "")
declaration[42] = declaration
Declaration()[{ 42 }()] = { 4 }
}