11 lines
228 B
Kotlin
Vendored
11 lines
228 B
Kotlin
Vendored
fun foo(c : Collection<String>) = {
|
|
c.filter{
|
|
val s : String? = bar()
|
|
if (s == null) false // here!
|
|
zoo(<!TYPE_MISMATCH!>s<!>)
|
|
}
|
|
}
|
|
|
|
fun bar() : String? = null
|
|
fun zoo(s : String) : Boolean = true
|