JS backend: make MutableMap.set as function intrinsic.
Fixed test WebDemoExamples2Test#builder.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user