[JS IR BE]: support dynamic_var["foo"] = "bar"

Used EQ origin to detect. Added a test to check dynamic_var = "bar" case
is not affected
This commit is contained in:
Anton Bannykh
2018-10-09 19:41:49 +03:00
parent 7afb81a7df
commit 8c6337f3f6
37 changed files with 8 additions and 36 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
operator fun HashMap<String, Int?>.set(index: String, elem: Int?) {
this.put(index, elem)
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
operator fun <K, V> MutableMap<K, V>.set(k : K, v : V) = put(k, v)
fun box() : String {