Data Outflow: Allow for-loop variables

#KT-19018 Fixed
This commit is contained in:
Alexey Sedunov
2017-11-08 16:55:35 +03:00
parent fc307da383
commit 1ceb751061
4 changed files with 20 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
// FLOW: OUT
fun f1(param: String) {}
fun f4(list: List<String>) {
for (<caret>s in list)
if (s.isNotEmpty())
f1(s)
}
+4
View File
@@ -0,0 +1,4 @@
6 for (<bold>s</bold> in list)
7 if (<bold>s</bold>.isNotEmpty())
8 f1(<bold>s</bold>)
3 fun f1(<bold>param: String</bold>) {}