Is there a specific reason code like this fails to...
# announcements
j
Is there a specific reason code like this fails to compile? Restrict suspension seems overly restrictive to me in this case:
Copy code
@RestrictsSuspension
interface Scope<A> {
  suspend fun test()
}

open class MyScope<A> : Scope<A> {
  override suspend fun test() = TODO("placeholder")
}

class OtherScope<A> : MyScope<A>() {
  override suspend fun test() = super.test() // Fails because of restricted suspension
}