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,7 @@
// PROBLEM: none
fun sqrPlusOne(arg: Int): Int {
var <caret>other = arg
other++
return other * other
}