KT-1733 test for obsolete issue

This commit is contained in:
Alex Tkachman
2012-08-04 21:29:28 +03:00
parent 454f0aaa15
commit bf7bf194e6
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
fun box(args) : String {
val map = java.util.TreeMap<String, String>()
map["a"] = "1"
map["b"] = "2"
var list = arrayList<String>()
for (e in map) {
list += e.getKey()
}
return if(list.size==2) "OK" else "fail"
}