For each parameter not used: introduce "replace with repeat"

An enhancement for KT-27209
This commit is contained in:
Mikhail Glukhikh
2018-12-06 17:23:05 +03:00
parent e06c995516
commit 11909a86a8
10 changed files with 85 additions and 1 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
// FIX: Replace with 'repeat(size)'
fun test(sequence: Sequence<String>) {
sequence.for<caret>Each {}
}