KT-9377 Support is-checks for read-only collections
Intrinsics for is/as/as? with mutable Kotlin collections and related types.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ class S : Set<String>, SetStringImpl() {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val s = S() as MutableSet<String>
|
||||
val s = S() as java.util.Set<String>
|
||||
s.add("")
|
||||
s.remove("")
|
||||
s.clear()
|
||||
|
||||
Reference in New Issue
Block a user