uhe
08/02/2018, 8:40 AM@RestrictsSuspension
class Foo() {
suspend fun bar() = Unit
}
// ERROR: Restricted suspending functions can only invoke member or extension suspending functions on their restricted coroutine scope
fun yUnoWork() = runBlocking { Foo().bar() }
Ilmir Usmanov [JB]
08/02/2018, 12:22 PMfun fooBuilder(c: suspend Foo.() -> Unit) ...
Your code snippet worked in 1.2.50 due to a bug: https://youtrack.jetbrains.com/issue/KT-24859uhe
08/03/2018, 8:13 AM