Do not reference java.util in tests that run on JS backend.
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user