Completion: do not force dsl members to the top if some type is expected

This commit is contained in:
Pavel V. Talanov
2018-02-20 16:26:52 +01:00
parent 1796d40118
commit 92070d132e
3 changed files with 57 additions and 1 deletions
@@ -0,0 +1,45 @@
// RUNTIME
package test
import bar.r
import bar.foo3
fun main() {
val foo5 = 3
r {
val j: String = foo<caret>
}
}
@DslMarker
annotation class Dsl
@Dsl
class R
fun r(body: R.() -> Unit) {
}
fun foo1(i: Int): String ""
fun foo3() {
}
@Dsl
fun R.foobar2(): String = ""
@Dsl
fun R.foobar4() {
}
// ORDER: foobar2
// ORDER: foo1
// ORDER: foo5
// ORDER: foobar4
// ORDER: foo3