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
This commit is contained in:
Pavel V. Talanov
2018-08-07 20:46:13 +02:00
parent 51681d57c8
commit 0c1d25d5ac
13 changed files with 120 additions and 12 deletions
@@ -11,10 +11,10 @@ fun main() {
}
}
// ORDER: foo6
// ORDER: foo2
// ORDER: foo3
// ORDER: foo6
// ORDER: foo4
// ORDER: foo1
// ORDER: fooLocal
// ORDER: foo5
// ORDER: foo1