Inline refactoring: should support set/get operator
#KT-17378 Fixed
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
Reference in New Issue
Block a user