Kotlin - Data Types
Identify the error in the following Kotlin function:
fun show(): Unit {
return
println("Hi")
}fun show(): Unit {
return
println("Hi")
}return statement ends the function immediately, so the println("Hi") after it is unreachable code.println statement is unreachable after return -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions