Detect redundant 'is' check
#KT-14187 Fixed
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
768e0fa738
commit
cd24adac32
@@ -1,7 +1,7 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo(x: Number) {
|
||||
if ((x as Int) is Int) {
|
||||
if (<!USELESS_IS_CHECK!>(x as Int) is Int<!>) {
|
||||
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
|
||||
}
|
||||
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
|
||||
|
||||
Reference in New Issue
Block a user