withLatestFrom() build error with RxKotlin 2.4.0
GrahamBorland opened this issue · comments
Graham Borland commented
I just updated RxKotlin from 2.3.0 to 2.4.0 and this code no longer compiles.
Observable.just(Unit)
.withLatestFrom(this) { _, item: T -> item }
Now I have to write
Observable.just(Unit)
.withLatestFrom(this, BiFunction<Unit, T, T> { _, item -> item })
Kotlin 1.3.41.
Possibly related to #196?
Colin White commented
@GrahamBorland Not sure if this fixes the issue for you, but we needed to have our generic T
type be <T : Any>
.