KT-9450 «Replace overloaded operator with function call» breaks code for index access result saved to variable

#KT-9450 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-20 18:15:16 +03:00
parent 6baef687ef
commit c6978d6b69
4 changed files with 15 additions and 1 deletions
@@ -0,0 +1,4 @@
fun foo(map: Map<String, String>) {
val a: String?
a = map<caret>[""]
}
@@ -0,0 +1,4 @@
fun foo(map: Map<String, String>) {
val a: String?
a = map.get("")
}