Files
kotlin-fork/idea/testData/inspectionsLocal/selfAssignment/propertyHasSetter.kt
T

14 lines
172 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
class Test {
var foo = 1
set(value) {
println(value)
}
fun test() {
foo = <caret>foo
}
}