Report error on non-tail suspend-calls
It only concerns calls inside another suspend function #KT-14924 In Progress
This commit is contained in:
@@ -11,7 +11,8 @@ class Controller {
|
||||
Suspend
|
||||
}
|
||||
|
||||
suspend fun suspendLogAndThrow(exception: Throwable): Nothing = suspendWithCurrentContinuation { c ->
|
||||
// Tail calls are not allowed to be Nothing typed. See KT-15051
|
||||
suspend fun suspendLogAndThrow(exception: Throwable): Any? = suspendWithCurrentContinuation { c ->
|
||||
result += "throw(${exception.message});"
|
||||
c.resumeWithException(exception)
|
||||
Suspend
|
||||
|
||||
Reference in New Issue
Block a user