Completed Coursera: Kotlin for developers course

This commit is contained in:
Martin Berg Alstad
2025-07-30 14:34:03 +02:00
commit 80c14c76ba
41 changed files with 608 additions and 0 deletions

8
src/Nothing.kt Normal file
View File

@ -0,0 +1,8 @@
fun main() {
doesNotReturn()
println("This is unreachable")
}
fun doesNotReturn(): Nothing {
throw RuntimeException("This function should always fail")
}