Ok, this is just hilarious :)

Just watched kotlinconf puzzlers video

//sampleStart
fun f(): String {
    return throw return throw return "asd"
}
//sampleEnd

fun main(args: Array<String>) {
    println(f())
}

PS it is valid code, that compiles

4 Likes

For anyone having trouble locating that video, here’s the link.

A puzzler in itself is why it takes Anton about 100 seconds before he says anything!

2 Likes