Add regression for EA-47864

This commit is contained in:
Alexander Udalov
2013-09-06 21:16:42 +04:00
parent c6b1dc6f36
commit c8a5c9ef59
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,12 @@
import java.util.Arrays
fun foo(): List<String>? = Arrays.asList("abcde")
fun box(): String {
for (i in 1..3) {
for (value in foo() ?: continue) {
if (value != "abcde") return "Fail"
}
}
return "OK"
}