Files
kotlin-fork/idea/testData/inspectionsLocal/selfAssignment/property2.kt
T
2017-11-02 11:07:52 +03:00

10 lines
165 B
Kotlin
Vendored

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