More correct completion list sorting by receivers

This commit is contained in:
Valentin Kipyatkov
2016-08-30 21:48:35 +03:00
parent a60d9d546d
commit 835c60f2a5
6 changed files with 75 additions and 28 deletions
+18 -1
View File
@@ -17,7 +17,9 @@ class Derived : Base() {
fun aaLocalFun(){}
with (y) {
aa<caret>
if (this is Z1 && this is Z2) {
aa<caret>
}
}
}
}
@@ -25,10 +27,21 @@ class Derived : Base() {
interface X {
fun aaX()
}
interface Y : X {
fun aaY()
}
interface Z1 {
fun aaaZ1()
fun aabZ1()
}
interface Z2 {
fun aaaZ2()
fun aabZ2()
}
fun Any.aaAnyExtensionFun(){}
fun Derived.aaExtensionFun(){}
@@ -43,6 +56,10 @@ fun Y.aaYExt(){}
// ORDER: aaLocalVal
// ORDER: aaLocalFun
// ORDER: aaY
// ORDER: aaaZ1
// ORDER: aaaZ2
// ORDER: aabZ1
// ORDER: aabZ2
// ORDER: aaX
// ORDER: aaYExt
// ORDER: aaXExt