Supported "count()"

This commit is contained in:
Valentin Kipyatkov
2016-04-20 16:34:49 +03:00
parent 53e3a67a7f
commit db53794663
14 changed files with 200 additions and 1 deletions
@@ -0,0 +1,13 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
fun foo(list: List<String>): Int {
var count = bar()
<caret>for (s in list) {
if (s.isNotBlank()) {
count++
}
}
return count
}
fun bar(): Int = 0