JS backend: fixed Map set/get -- should work with jet Map/MutableMap.

Added to PatternBuilder the ability to check that method has been overridden.
This commit is contained in:
develar
2013-08-08 19:51:49 +04:00
committed by Zalim Bashorov
parent 421c896416
commit 8867c7a33f
5 changed files with 70 additions and 15 deletions
+4 -2
View File
@@ -5,9 +5,11 @@ import js.native
import java.util.*;
import java.lang.*;
native
public val noImpl : Nothing = throw Exception();
public val noImpl : Nothing = throw Exception()
/** Provides [] access to maps */
native public fun <K, V> MutableMap<K, V>.set(key: K, value: V): Unit = noImpl
library("println")
public fun println() {}
-6
View File
@@ -1,11 +1,5 @@
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