Skip to content

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

Open
@Aw79

Description

@Aw79

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions