Add "unnecessary local variable" inspection #KT-15958 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun sqrPlusOne(arg: Int): Int {
|
||||
var <caret>other = arg
|
||||
other++
|
||||
return other * other
|
||||
}
|
||||
Reference in New Issue
Block a user