Files
kotlin-fork/idea/idea-completion/testData/basic/common/primitiveCompletion/completionInLocalFunction.kt
T
Roman Golyshev f641466f70 FIR IDE: Fix searching for the closest function to re-resolve
If the function is local, there would be errors related to its
unresolved body and receiver type
2021-03-19 12:37:39 +03:00

17 lines
298 B
Kotlin
Vendored

// FIR_COMPARISON
val topLevelVal = ""
fun topLevel(topLevelArg: String) {
val inTopLevelVal = 10
fun local(localArg: String) {
val inLocalVal = 20
<caret>
}
}
// EXIST: topLevelVal
// EXIST: topLevelArg
// EXIST: inTopLevelVal
// EXIST: localArg
// EXIST: inLocalVal