Sorting overloads in completion

This commit is contained in:
Valentin Kipyatkov
2015-11-10 23:05:49 +03:00
parent ac8532ffce
commit 6a26e2fd82
6 changed files with 40 additions and 0 deletions
@@ -0,0 +1,10 @@
fun foo(iterable: Iterable<String>) {
iterable.singl<caret>
}
// WITH_ORDER
// EXIST: { itemText: "single", tailText: "() for Iterable<T> in kotlin" }
// EXIST: { itemText: "single", tailText: " {...} (predicate: (String) -> Boolean) for Iterable<T> in kotlin" }
// EXIST: { itemText: "singleOrNull", tailText: "() for Iterable<T> in kotlin" }
// EXIST: { itemText: "singleOrNull", tailText: " {...} (predicate: (String) -> Boolean) for Iterable<T> in kotlin" }
// NOTHING_ELSE