Reduce highlighting range for UNCHECKED_CAST

#KT-18985 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-07-28 16:41:21 +03:00
parent 8f8143d3ed
commit ae3497c6ce
21 changed files with 41 additions and 41 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ fun <T> testMutableCollection(c: MutableCollection<T>, t: T) {
val <!UNUSED_VARIABLE!>mutableIterator<!>: MutableIterator<T> = c.iterator()
c.add(t)
c.remove(<!UNCHECKED_CAST!>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 <!UNUSED_VARIABLE!>mutableIterator<!>: MutableIterator<T> = s.iterator()
s.add(t)
s.remove(<!UNCHECKED_CAST!>1 as T<!>)
s.remove(1 <!UNCHECKED_CAST!>as T<!>)
s.addAll(s)
s.removeAll(s)
s.retainAll(s)