sum and sumBy supported

This commit is contained in:
Valentin Kipyatkov
2016-08-18 20:19:35 +03:00
parent 7c92f7974f
commit d0f6e25783
40 changed files with 682 additions and 6 deletions
@@ -0,0 +1,14 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// IS_APPLICABLE_2: false
class C
operator fun C.plus(other: C): C = TODO()
fun foo(list: List<C>): C {
var s = C()
<caret>for (item in list) {
s += item
}
return s
}