Files
kotlin-fork/idea/idea-completion/testData/weighers/basic/DslCalls.kt
T
Pavel V. Talanov 0c1d25d5ac Completion: when Unit is expected do not prioritize by return type
Decide on completion order by other factors
Previously would prefer callable that return Unit if Unit is the expected type
    leading to strange completion order

 #KT-25588 Fixed
2018-08-16 13:59:38 +02:00

21 lines
236 B
Kotlin
Vendored

// RUNTIME
package test
import bar.r
import bar.foo3
fun main() {
val foo5 = 3
r {
foo<caret>
}
}
// ORDER: foo2
// ORDER: foo4
// ORDER: fooloooooong
// ORDER: foo5
// ORDER: foo3
// ORDER: fooval
// ORDER: foo1