From 1a983665f82a3bad571e6b73091104fc5a6b3762 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 8 Apr 2021 13:50:43 +0300 Subject: [PATCH] Fix useProperty type --- .../space/kscience/dataforge/meta/ObservableItemProvider.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableItemProvider.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableItemProvider.kt index 5d455d17..c66ec858 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableItemProvider.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableItemProvider.kt @@ -26,10 +26,10 @@ public interface ItemPropertyProvider: ObservableItemProvider, MutableItemProvid * Optional [owner] property is used for */ @DFExperimental -public fun O.useProperty( - property: KProperty1, +public fun O.useProperty( + property: KProperty1, owner: Any? = null, - callBack: O.(T?) -> Unit, + callBack: O.(T) -> Unit, ) { //Pass initial value. callBack(property.get(this))