Detect redundant 'is' check
#KT-14187 Fixed
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
768e0fa738
commit
cd24adac32
@@ -31,7 +31,8 @@ fun test(a: Any) {
|
||||
a <!UNSUPPORTED!>!in<!>'s'
|
||||
a <!UNSUPPORTED!>!in<!><!EMPTY_CHARACTER_LITERAL!>''<!>
|
||||
|
||||
if("s"<!UNSUPPORTED!>is<!> Any) {}
|
||||
if(<!USELESS_IS_CHECK!>"s"<!UNSUPPORTED!>is<!> Any<!>) {}
|
||||
if(<!USELESS_IS_CHECK!>"s"<!UNSUPPORTED!>is<!> Any<!>) {}
|
||||
test("s"<!UNSUPPORTED!>as<!> Any)
|
||||
|
||||
a <!UNSUPPORTED!>foo<!>""<!UNSUPPORTED, SYNTAX!>1<!>
|
||||
|
||||
Reference in New Issue
Block a user