Fixed some cases when smart cast problems were not detected

This commit is contained in:
Valentin Kipyatkov
2016-04-22 21:39:11 +03:00
parent fe52bed74e
commit 833f62e9b9
10 changed files with 127 additions and 30 deletions
@@ -0,0 +1,11 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo(list: List<Any>, target: MutableCollection<String>) {
<caret>for (o in list) {
if (bar(o as String)) {
target.add(o)
}
}
}
fun bar(s: String): Boolean = true