blob: 8397c3dde4a5b732037fef5543128333d4a88511 [file] [log] [blame]
// WITH_RUNTIME
fun foo(p: Int, list: List<Int>) {
if (p > 0) {
val predicate: (Int) -> Boolean = { it > 0 }
list.filter(predicate)
}
}