Do not reference java.util in tests that run on JS backend.

This commit is contained in:
Ilya Gorbunov
2016-09-30 22:15:34 +03:00
parent 491ca582b3
commit 38840bb529
151 changed files with 76 additions and 214 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ fun box(): String {
}
class Cached<K, V>(private val generate: (K)->V): Function1<K, V> {
val store = java.util.HashMap<K, V>()
val store = HashMap<K, V>()
// Everything works just fine if 'invoke' method is renamed to, for example, 'get'
override fun invoke(p1: K) = store.getOrPut(p1) { generate(p1) }