fun main() { doesNotReturn() println("This is unreachable") } fun doesNotReturn(): Nothing { throw RuntimeException("This function should always fail") }