blob: 992939cf1754f458de289c20b863b1ae0409807b [file] [log] [blame]
// 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() } }
}