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

8 lines
162 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'sum()'"
// IS_APPLICABLE_2: false
fun foo(list: List<Byte>): Int {
val <caret>s = list.sum()
return s
}