Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

withLatestFrom() build error with RxKotlin 2.4.0 #219

Open
GrahamBorland opened this issue Jul 30, 2019 · 1 comment
Open

withLatestFrom() build error with RxKotlin 2.4.0 #219

GrahamBorland opened this issue Jul 30, 2019 · 1 comment

Comments

@GrahamBorland
Copy link

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?

@colinrtwhite
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants