Partial body resolve: more efficient for-loop handling

This commit is contained in:
Valentin Kipyatkov
2014-11-18 14:38:47 +03:00
parent 5283b92269
commit e6acc5601c
4 changed files with 24 additions and 0 deletions
@@ -0,0 +1,3 @@
Resolve target: value-parameter val p: kotlin.Any? smart-casted to kotlin.String
Skipped statements:
print(p1!!)
@@ -0,0 +1,9 @@
fun x(s: String): Collection<String>{}
fun foo(p: Any?, p1: Any?) {
for (e in x(p as String)) {
print(p1!!)
}
<caret>p.size
}