mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 13:11:39 +07:00
The main issue here is that in tests we are using stdlib from the default JPS (KTIJ-21822) and a lot of tests infer language version based on a stdlib version. As a result, a lot of tests changed because of switching LV from 1.6 to 1.7. GitOrigin-RevId: 0eed6052bebcd53e2cb55daac7aad4a905bcc266
10 lines
305 B
Plaintext
10 lines
305 B
Plaintext
// INTENTION_TEXT: "Convert to 'runningReduceIndexed'"
|
|
// WITH_STDLIB
|
|
// TODO: fix warning?
|
|
// AFTER-WARNING: Parameter 'index' is never used, could be renamed to _
|
|
@OptIn(ExperimentalStdlibApi::class)
|
|
fun test(list: List<String>) {
|
|
list.runningReduceIndexed { index, acc, s ->
|
|
acc + s
|
|
}
|
|
} |