Resolve target: value-parameter p: kotlin.Any? smart-cast to kotlin.String ---------------------------------------------- fun x(s: String): Collection{} fun foo(p: Any?, p1: Any?) { for (e in x(p as String)) { /* STATEMENT DELETED: print(p1!!) */ } p.length }