// WITH_STDLIB import kotlin.experimental.ExperimentalTypeInference object Hello { val hello = "hello" } @OptIn(ExperimentalTypeInference::class) fun buildList0(builder: MutableList.() -> Unit): List = mutableListOf().apply { builder() } val numbers = buildList0 { add(Hello.let { it::hello }.get()) } fun box(): String { numbers return "OK" }