CombineExt icon indicating copy to clipboard operation
CombineExt copied to clipboard

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

Open Aw79 opened this issue 2 years ago • 0 comments

Hello ✌️,

in /Sources/Operators/Internal/Timer.swift there are warnings in func addSubscriber<S: Subscriber>(_ sub: S) and internal func receive<S: Subscriber>(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

Aw79 avatar Jan 24 '24 20:01 Aw79