[FIR] Add UNCHECKED_CAST

Regenerate diagnostics code
This commit is contained in:
Ivan Kochurkin
2021-09-16 23:24:58 +03:00
committed by TeamCityServer
parent 1fbccff1bd
commit d0a4ca199d
70 changed files with 118 additions and 933 deletions
@@ -26,7 +26,7 @@ fun <T> testMutableCollection(c: MutableCollection<T>, t: T) {
val mutableIterator: MutableIterator<T> = c.iterator()
c.add(t)
c.remove(1 as T)
c.remove(1 <!UNCHECKED_CAST!>as T<!>)
c.addAll(c)
c.removeAll(c)
c.retainAll(c)
@@ -84,7 +84,7 @@ fun <T> testMutableSet(s: MutableSet<T>, t: T) {
val mutableIterator: MutableIterator<T> = s.iterator()
s.add(t)
s.remove(1 as T)
s.remove(1 <!UNCHECKED_CAST!>as T<!>)
s.addAll(s)
s.removeAll(s)
s.retainAll(s)