Add callee name to diagnostic about illegal suspension call
#KT-15938 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// !DIAGNOSTICS_NUMBER: 1
|
||||
// !DIAGNOSTICS: ILLEGAL_SUSPEND_FUNCTION_CALL
|
||||
suspend fun foo() {}
|
||||
|
||||
fun noSuspend() {
|
||||
foo()
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!-- illegalSuspendCall1 -->
|
||||
Suspend function 'foo' should be called only from a coroutine or another suspend function
|
||||
Reference in New Issue
Block a user