From 933be5bc9ae3bed35b5eb5aca7f7d75e425f6337 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Thu, 9 Apr 2020 16:05:34 +0200 Subject: [PATCH] Fix problem after removing cast --- orx-file-watcher/src/main/kotlin/FileWatcher.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) }