but if I switch to `<out Any>` I get another...
# announcements
p
but if I switch to
<out Any>
I get another issue when I try to flatMap:
Copy code
Error:(35, 5) Kotlin: Type inference failed: Cannot infer type parameter O in fun <O : Any!> flatMap(p0: ((TypedData!) -> Promise<O!>!)!): Promise<O!>!
None of the following substitutions
(((TypedData!) -> Promise<Any?>!)!)
(((TypedData!) -> Promise<Nothing!>!)!)
can be applied to
((TypedData!) -> Promise<out Any?>)