Skip to content

Commit df29262

Browse files
committed
CombineCommunity#165: Rename generic parameter from S to T to avoid shadowing generic parameter of outer scope
1 parent d7b896f commit df29262

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Operators/Internal/Timer.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@
161161
lock.cleanupLock()
162162
}
163163

164-
func addSubscriber<S: Subscriber>(_ sub: S)
164+
func addSubscriber<T: Subscriber>(_ sub: T)
165165
where
166-
S.Failure == Failure,
167-
S.Input == Output
166+
T.Failure == Failure,
167+
T.Input == Output
168168
{
169169
lock.lock()
170170
subscribers.append(AnySubscriber(sub))
@@ -229,8 +229,8 @@
229229
}
230230
}
231231

232-
internal func receive<S: Subscriber>(subscriber: S)
233-
where Failure == S.Failure, Output == S.Input {
232+
internal func receive<T: Subscriber>(subscriber: T)
233+
where Failure == T.Failure, Output == T.Input {
234234
routingSubscription.addSubscriber(subscriber)
235235
}
236236

0 commit comments

Comments
 (0)