Add callee name to diagnostic about illegal suspension call
#KT-15938 Fixed
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Make bar suspend" "false"
|
||||
// ERROR: Suspend functions are only allowed to be called from a coroutine or another suspend function
|
||||
// ERROR: Suspend function 'foo' should be called only from a coroutine or another suspend function
|
||||
|
||||
suspend fun foo() {}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Make bar suspend" "false"
|
||||
// ACTION: Convert property initializer to getter
|
||||
// ERROR: Suspend functions are only allowed to be called from a coroutine or another suspend function
|
||||
// ERROR: Suspend function 'foo' should be called only from a coroutine or another suspend function
|
||||
|
||||
suspend fun foo() = 42
|
||||
val x = <caret>foo()
|
||||
|
||||
Reference in New Issue
Block a user