why can I do the second one but not the first one?...
# getting-started
p
why can I do the second one but not the first one?
Copy code
fun foo(file: File) {
    file.forEachLine {
        return
    }

    listOf(1,2).forEach {
        return
    }
}