For each parameter unused: add quick-fix "introduce anonymous parameter"

Related to KT-22068
This commit is contained in:
Mikhail Glukhikh
2018-08-09 17:01:58 +03:00
parent af17a4e961
commit 911f16845e
5 changed files with 58 additions and 16 deletions
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun test(list: List<String>) {
list.for<caret>Each {}
}
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun test(list: List<String>) {
list.forEach { _ -> }
}