blob: 5ed32558d7675b69e0a4330e0c9cefed6a778051 [file] [log] [blame]
// KJS_WITH_FULL_RUNTIME
data class Pair<First, Second>(val first: First, val second: Second)
fun parseCatalogs(hashMap: Any?) {
val r = toHasMap(hashMap)
if (!r.first) {
return
}
val nodes = r.second
}
fun toHasMap(value: Any?): Pair<Boolean, HashMap<String, Any?>?> {
if(value is HashMap<*, *>) {
return Pair(true, value as HashMap<String, Any?>)
}
return Pair(false, null as HashMap<String, Any?>?)
}
fun box() : String {
parseCatalogs(null)
return "OK"
}