Smart completion: fixed items ordering issue

This commit is contained in:
Valentin Kipyatkov
2014-10-28 20:20:33 +03:00
parent caf44969a4
commit 2b33501471
52 changed files with 103 additions and 88 deletions
@@ -0,0 +1,15 @@
class Name {
class object {
fun create(): Name = Name()
}
}
fun foo(name: Name){}
fun bar() {
val v: (Name) -> Unit = { foo(<caret>) }
}
// ORDER: it
// ORDER: create
// ORDER: Name
@@ -15,6 +15,6 @@ fun foo(p: C?) {
// ORDER: p
// ORDER: local
// ORDER: global
// ORDER: C.INSTANCE
// ORDER: INSTANCE
// ORDER: object
// ORDER: null
@@ -19,10 +19,10 @@ fun foo(pFoo: C, s: String) {
// ORDER: pFoo
// ORDER: nullableFoo
// ORDER: nullableFoo
// ORDER: C.INSTANCE_FOO
// ORDER: INSTANCE_FOO
// ORDER: local
// ORDER: nonNullable
// ORDER: nullableX
// ORDER: nullableX
// ORDER: C.INSTANCE_X
// ORDER: INSTANCE_X
// ORDER: object