Files
Mikhail Zarechenskiy 6bb2e4f62d [kotlin] Update test data after bundling new Kotlin JPS plug-in
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
2022-05-30 20:27:42 +00:00

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
}
}