JS backend: make MutableMap.set as function intrinsic.

Fixed test WebDemoExamples2Test#builder.
This commit is contained in:
develar
2013-08-06 17:24:48 +04:00
committed by Zalim Bashorov
parent 63a72b1095
commit f1c258f601
5 changed files with 55 additions and 31 deletions
+4
View File
@@ -2,6 +2,10 @@ package java.util
import java.lang.*
/** Provides [] access to maps */
native
public fun <K, V> MutableMap<K, V>.set(key: K, value: V): Unit = noImpl
library("collectionsMax")
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
-5
View File
@@ -2,11 +2,6 @@ package kotlin
import java.util.HashMap
/** Provides [] access to maps */
public fun <K, V> MutableMap<K, V>.set(key : K, value : V): Unit {
this.put(key, value)
}
/**
* Returns a new [[HashMap]] populated with the given pairs where the first value in each pair
* is the key and the second value is the value