Checking type of the collection being iterated
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(array: Array<String>): String? {
|
||||
<caret>for (s in array) {
|
||||
if (s.isNotBlank()) {
|
||||
return s
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user