Skip to content

Commit

Permalink
Merge pull request #3043 from ReactiveCocoa/fix-producer-variadic-init
Browse files Browse the repository at this point in the history
Fix `SignalProducer(values: Value...)` signature to be distinguished from `SignalProducer(values: S)`
  • Loading branch information
RuiAAPeres committed Jul 8, 2016
2 parents 6e07f77 + 81287c5 commit d9258a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReactiveCocoa/Swift/SignalProducer.swift
Expand Up @@ -92,8 +92,8 @@ public struct SignalProducer<Value, Error: ErrorType> {

/// Creates a producer for a Signal that will immediately send the values
/// from the given sequence, then complete.
public init(values: Value...) {
self.init(values: values)
public init(values first: Value, _ second: Value, _ tail: Value...) {
self.init(values: [ first, second ] + tail)
}

/// A producer for a Signal that will immediately complete without sending
Expand Down

0 comments on commit d9258a0

Please sign in to comment.