KT-9377 Support is-checks for read-only collections

Additional tests.
This commit is contained in:
Dmitry Petrov
2015-10-02 12:44:24 +03:00
parent 06d9ff6a71
commit 1f69ae254d
4 changed files with 157 additions and 6 deletions
@@ -102,5 +102,8 @@ fun box(): String {
assert(mentry is MutableMap.MutableEntry<*, *>) { "MME should satisfy 'is MutableMap.MutableEntry'"}
assert(hashMapEntry is MutableMap.MutableEntry<*, *>) { "HashMap.Entry should satisfy 'is MutableMap.MutableEntry'"}
assert((mlist as Any) !is MutableSet<*>) { "ML !is MutableSet" }
assert((mlist as Any) !is MutableIterator<*>) { "ML !is MutableIterator" }
return "OK"
}