Fixed KT-2072: do not suggest to use type inference in Introduce Variable in case if expression type depends on expected type.

This commit is contained in:
Alexander.Podkhalyuzin
2012-05-23 18:58:24 +04:00
parent ccb8c08684
commit 48533ca8d2
5 changed files with 119 additions and 9 deletions
@@ -3,7 +3,7 @@ fun foo(c : Collection<String>){
}
/*
fun foo(c : Collection<String>){
val function: () -> Boolean = {it; false}
val function = {it; false}
c.filter(function)
}
*/