// WITH_RUNTIME // IS_APPLICABLE: false fun foo(list: List): Int { var index = 0 for (s in list) { val x = s.length * index++ print(x) print(s) } return index }