Fixed optimization in IterableTypesDetector which did not work from the beginning + make it work on FuzzyType

This commit is contained in:
Valentin Kipyatkov
2015-01-29 17:10:40 +03:00
parent b2275ae424
commit b03b96f202
4 changed files with 20 additions and 12 deletions
@@ -1,8 +1,13 @@
fun foo(p1: Collection<String>, p2: Collection<Int>, p3: Collection<String?>) {
for (i: Any in <caret>)
trait X
trait Y: X
trait Z
fun foo(p1: Collection<X>, p2: Collection<Y>, p3: Collection<Z>, p4: Collection<X?>) {
for (i: X in <caret>)
}
// EXIST: p1
// EXIST: p2
// ABSENT: p3
// ABSENT: p4
// EXIST: { lookupString:"listOf", itemText: "listOf", tailText: "(vararg values: T) (kotlin)", typeText:"List<T>" }