Files
kotlin-fork/idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelPropertySetterBodyCompletion.kt
T
Roman Golyshev dcc22d3e5d FIR IDE: Fix completion in property setters
Property consists of getter and setter (both optional). The setter
have a single `value` parameter with type

Because of it, we have to make a separate 'frankenstein setter' with
original resolved header, but with the body of the fake one

It seems that getters does not have such issues
2020-09-12 11:49:35 +00:00

11 lines
128 B
Kotlin
Vendored

// FIR_COMPARISON
fun localFun() {}
var property: Int
get() = 1
set(value) {
<caret>
}
// EXIST: localFun