ReactiveX / RxKotlin

RxJava bindings for Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

withLatestFrom() build error with RxKotlin 2.4.0

GrahamBorland opened this issue · comments

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?

@GrahamBorland Not sure if this fixes the issue for you, but we needed to have our generic T type be <T : Any>.