CombineCommunity / CombineExt

CombineExt provides a collection of operators, publishers and utilities for Combine, that are not provided by Apple themselves, but are common in other Reactive Frameworks and standards.
https://combine.community
MIT License
1.72k stars 151 forks source link

Generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in Swift 6 #165

Open Aw79 opened 7 months ago

Aw79 commented 7 months ago

Hello ✌️,

in /Sources/Operators/Internal/Timer.swift there are warnings in func addSubscriber(_ sub: S) and internal func receive(subscriber: S) like Generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in Swift 6.

warning-receive warning-addSubscriber

This can very easily be fixed by renaming the Generics of the methods.

I would like to provide a PR to solve this.

Cheers, Andy