Functions and exceptions

Report a typo

Write a Kotlin function that always throws an UnsupportedOperationException and it's return type should be Nothing:

______ alwaysFails(): ______ {
    throw UnsupportedOperationException("This operation is not supported")
}
Enter a short text

Create a free account to access the full topic