Surround with null check : apply for ITERATOR_ON_NULLABLE

This commit is contained in:
Mikhail Glukhikh
2016-06-13 14:52:14 +03:00
parent 7f771075fb
commit 954952ae71
6 changed files with 35 additions and 0 deletions
@@ -0,0 +1,8 @@
// "Surround with null check" "true"
// WITH_RUNTIME
fun foo(list: List<String>?) {
if (list != null) {
for (element in list) {}
}
}