diff --git a/dataforge-data/src/commonMain/kotlin/space/kscience/dataforge/data/DataTreeBuilder.kt b/dataforge-data/src/commonMain/kotlin/space/kscience/dataforge/data/DataTreeBuilder.kt index 675d6566..316a8322 100644 --- a/dataforge-data/src/commonMain/kotlin/space/kscience/dataforge/data/DataTreeBuilder.kt +++ b/dataforge-data/src/commonMain/kotlin/space/kscience/dataforge/data/DataTreeBuilder.kt @@ -102,7 +102,7 @@ public fun DataSource( type: KType, parent: CoroutineScope, block: DataSourceBuilder.() -> Unit, -): DataSource { +): DataSourceBuilder { val tree = DataTreeBuilder(type, parent.coroutineContext) tree.block() return tree @@ -112,7 +112,7 @@ public fun DataSource( public inline fun DataSource( parent: CoroutineScope, crossinline block: DataSourceBuilder.() -> Unit, -): DataSource = DataSource(typeOf(), parent) { block() } +): DataSourceBuilder = DataSource(typeOf(), parent) { block() } @Suppress("FunctionName") public suspend inline fun DataSource(