Files
kotlin-fork/idea/testData/intentions/loopToCallChain/sum/nonNumbers.kt
T
Valentin Kipyatkov d0f6e25783 sum and sumBy supported
2016-08-23 22:47:42 +03:00

15 lines
233 B
Kotlin
Vendored

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