You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the distinctUntilChanged() method on any observable sequence with an optional value will cause a compiler error complaining about ambiguous methods.
Expected outcome:
That the code compiles.
What actually happens:
Code does not compile, and yields error:
Ambiguous use of 'distinctUntilChanged()'
Self contained code example that reproduces the issue:
Current workaround is to use: .distinctUntilChanged({ $0 == $1 })
Proposed fix in RxSwift:
Conditional compilation for older swift versions than 4.1 for distinctUntilChanged() definition in Driver+Optional.swift and Observable+Optional.swift
Short description of the issue:
Calling the distinctUntilChanged() method on any observable sequence with an optional value will cause a compiler error complaining about ambiguous methods.
Expected outcome:
That the code compiles.
What actually happens:
Code does not compile, and yields error:
Ambiguous use of 'distinctUntilChanged()'
Self contained code example that reproduces the issue:
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
RxSwift 4.1.2
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
The text was updated successfully, but these errors were encountered: