KT-5455 Need warning about redundant type cast
#KT-5455 Fixed
This commit is contained in:
@@ -11,7 +11,7 @@ fun f2(s: Number?) {
|
||||
}
|
||||
|
||||
fun f3(s: Number?) {
|
||||
if (s is Int && s as Int == 42);
|
||||
if (s is Int && s <!USELESS_CAST_STATIC_ASSERT_IS_FINE!>as<!> Int == 42);
|
||||
<!TYPE_MISMATCH!>s<!> : Int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user