ReactiveX / RxSwift

Reactive Programming in Swift
MIT License
24.37k stars 4.17k forks source link

Fix Infallible CombineLatest arity helpers #2520

Closed hallee closed 1 year ago

hallee commented 1 year ago

From https://github.com/ReactiveX/RxSwift/pull/2508#discussion_r1181269601, I was wrong; the where Element == Any constraint is required to help the type system automatically infer the element type of the tuple. Without that constraint, combineLatest has this issue:

Screenshot 2023-05-11 at 4 48 13 PM

Added back the constraint and also added tests to verify.