Fix problem after removing cast

This commit is contained in:
Edwin Jakobs
2020-04-09 16:05:34 +02:00
parent d0d096d773
commit 933be5bc9a

View File

@@ -91,7 +91,8 @@ fun <T, R> (() -> 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())
}