Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/regression/kt2082.kt
T

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