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:
@@ -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)
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user