0c1d25d5ac
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
42 lines
426 B
Kotlin
Vendored
42 lines
426 B
Kotlin
Vendored
// RUNTIME
|
|
package test
|
|
|
|
class HasFoo {
|
|
fun foo10() {
|
|
|
|
}
|
|
}
|
|
|
|
fun main() {
|
|
val foo5 = 3
|
|
with(0) {
|
|
with("") {
|
|
with(HasFoo()) {
|
|
r {
|
|
foo<caret>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@DslMarker
|
|
annotation class Dsl
|
|
|
|
|
|
@Dsl
|
|
class R
|
|
|
|
fun r(body: R.() -> Unit) {
|
|
|
|
}
|
|
|
|
fun foo1(i: Int) {
|
|
|
|
}
|
|
|
|
// ORDER: foo2
|
|
// ORDER: foo5
|
|
// ORDER: foo10
|
|
// ORDER: foo1
|