Ordinary completion includes some items from smart completion + changed priority for multi-args item in smart completion

#KT-8580 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-08-06 01:25:56 +03:00
parent 73b98aba17
commit af2b6588c0
24 changed files with 243 additions and 50 deletions
@@ -0,0 +1,12 @@
class CC {
companion object {
fun getInstance(): CC {}
}
}
fun foo(): CC {
return C<caret>
}
// ORDER: CC
// ORDER: getInstance
@@ -0,0 +1,13 @@
enum class EE {
A,
B
}
fun foo(): EE {
return E<caret>
}
// ORDER: valueOf
// ORDER: A
// ORDER: B
// ORDER: EE
@@ -0,0 +1,12 @@
interface I1
interface I2
fun foo(a: I1, b: I2, c: I1) {}
fun bar(b: I2, a: I1, c: I1) {
foo(<caret>)
}
// ORDER: a
// ORDER: c
// ORDER: "a, b, c"