9 lines
167 B
Kotlin
9 lines
167 B
Kotlin
fun main() {
|
|
doesNotReturn()
|
|
println("This is unreachable")
|
|
}
|
|
|
|
fun doesNotReturn(): Nothing {
|
|
throw RuntimeException("This function should always fail")
|
|
}
|