Smart completion for for loop range to use loop variable type if defined

This commit is contained in:
Valentin Kipyatkov
2015-01-16 19:50:43 +03:00
parent f057445f6e
commit a32029f1fc
5 changed files with 32 additions and 5 deletions
@@ -0,0 +1,8 @@
fun foo(p1: Collection<String>, p2: Collection<Int>, p3: Collection<String?>) {
for (i: Any in <caret>)
}
// EXIST: p1
// EXIST: p2
// ABSENT: p3
// EXIST: { lookupString:"listOf", itemText: "listOf", tailText: "(vararg values: T) (kotlin)", typeText:"List<T>" }