Name Suggester: Suggest parameter name for the corresponding argument expression

#KT-8111 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-10 15:07:22 +03:00
parent f21603daf2
commit aeee8bafe6
20 changed files with 137 additions and 51 deletions
@@ -2,7 +2,7 @@
fun foo(p: Int, list: List<Int>) {
if (p > 0) {
val function: (Int) -> Boolean = { it > 0 }
list.filter(function)
val predicate: (Int) -> Boolean = { it > 0 }
list.filter(predicate)
}
}