// FIX: Wrap function body with 'coroutineScope { ... }' | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.async | |
import kotlinx.coroutines.coroutineScope | |
fun calcSomething() = 42 | |
abstract class MyCoroutineScope : CoroutineScope { | |
suspend fun foo() = coroutineScope { this.async { calcSomething() } } | |
} |