This doesn't have compilation error :
suspend fun test() {
runBlocking {
}
}
This has a compilation error :
suspend fun test() {
launch {
}
}
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public fun CoroutineScope.launch(context: CoroutineContext = ..., start: CoroutineStart = ..., block: suspend CoroutineScope.() -> Unit): Job defined in kotlinx.coroutines
I don't really understand what is the problem...