Files
Toshiaki Kameyama 82cd77f2db Introduce inspection detecting self-assignment of properties
So #KT-20714 Fixed

GitOrigin-RevId: f11847b8674f40c708e82dd3c42798c0165e3a47
2017-11-02 11:07:52 +03:00

7 lines
132 B
Kotlin

// PROBLEM: Variable 'bar' is assigned to itself
// FIX: Remove self assignment
fun test() {
var bar = 1
bar = <caret>bar
}