simon.vergauwen
09/27/2023, 7:56 AMsam
10/01/2023, 7:07 PMsimon.vergauwen
10/01/2023, 7:08 PMsuspend
constructors 😜 I'm not entirely sure where it landed, I think it can be added without breaking binary. Not 100% on semanticssam
10/01/2023, 7:08 PMsimon.vergauwen
10/01/2023, 7:09 PMsam
10/01/2023, 7:09 PMsimon.vergauwen
10/01/2023, 7:09 PMrunBlocking
route..sam
10/01/2023, 7:09 PMsimon.vergauwen
10/01/2023, 7:11 PMsam
10/01/2023, 7:11 PMabstract class FunSpec(body: suspend FunSpec.() -> Unit = {}) : DslDrivenSpec(), FunSpecRootScope {
init {
runBlocking { body() }
}
}
simon.vergauwen
10/01/2023, 7:18 PMrunBlocking
, but I don't know how much it matters in regard to how everything is initialised.
abstract class FunSpec(body: suspend FunSpec.() -> Unit = {}) : DslDrivenSpec(), FunSpecRootScope {
}
Where it's created:
FunSpec().apply(body)
sam
10/01/2023, 7:19 PMFunSpec().apply(body)
runs the body after subclass inits, and right now the superclass init gets priority.simon.vergauwen
10/01/2023, 7:46 PM