diff --git a/orx-file-watcher/src/main/kotlin/FileWatcher.kt b/orx-file-watcher/src/main/kotlin/FileWatcher.kt index 9cb1202f..a2abcac9 100644 --- a/orx-file-watcher/src/main/kotlin/FileWatcher.kt +++ b/orx-file-watcher/src/main/kotlin/FileWatcher.kt @@ -91,7 +91,8 @@ fun (() -> T).watch(transducer: (T) -> R):()->R { var result = transducer(this()) - watchers[this]!!.watchers.add { + @Suppress("USELESS_CAST") + watchers[this as () -> Any?]!!.watchers.add { result = transducer(this()) }