mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
1. Search the top-level function or property (only they can produce blocks that won't affect other declarations)
2. Check if current position is hidden by this declaration
O^2 behaviour is removed
11 lines
92 B
Kotlin
11 lines
92 B
Kotlin
// TRUE
|
|
|
|
val a = 1
|
|
fun test() = if (a) {
|
|
fun hello() {
|
|
<caret>
|
|
}
|
|
}
|
|
else {
|
|
|
|
} |