Checking that input variable is really used

This commit is contained in:
Valentin Kipyatkov
2016-04-20 17:22:34 +03:00
parent 345f2b8a52
commit e0a7e1dbed
8 changed files with 60 additions and 5 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo(list: List<String>, target: MutableList<Int>) {
<caret>for (s in list) {
if (s.length > 0)
target.add(0)
}
}