Add "unnecessary local variable" inspection #KT-15958 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-07-12 11:26:51 +03:00
parent 9d06a80519
commit 987c7f5be8
16 changed files with 232 additions and 0 deletions
@@ -0,0 +1,9 @@
// PROBLEM: none
val x: Number? = null
fun foo(): Int {
val <caret>y = x
if (y is Int) return y
return 0
}