@@ -229,12 +229,11 @@ class SignalProducerSpec: QuickSpec {
229229 let resultAction2 : ( ) -> Result < String , AnyError > = { . success( " " ) }
230230 let throwableResultAction : ( ) throws -> Result < String , NoError > = { . success( " " ) }
231231
232- expect ( type ( of: SignalProducer ( action) ) ) == SignalProducer < String , AnyError > . self
233- expect ( type ( of: SignalProducer < String , NoError > ( action) ) ) == SignalProducer < String , NoError > . self
234- expect ( type ( of: SignalProducer < String , TestError > ( action) ) ) == SignalProducer < String , TestError > . self
232+ expect ( type ( of: SignalProducer ( action) ) ) == SignalProducer < String , NoError > . self
233+ expect ( type ( of: SignalProducer < String , AnyError > ( action) ) ) == SignalProducer < String , AnyError > . self
235234
236- expect ( type ( of: SignalProducer ( resultAction1) ) ) == SignalProducer < String , NoError > . self
237- expect ( type ( of: SignalProducer ( resultAction2) ) ) == SignalProducer < String , AnyError > . self
235+ expect ( type ( of: SignalProducer < String , NoError > ( resultAction1) ) ) == SignalProducer < String , NoError > . self
236+ expect ( type ( of: SignalProducer < String , AnyError > ( resultAction2) ) ) == SignalProducer < String , AnyError > . self
238237
239238 expect ( type ( of: SignalProducer ( throwableAction) ) ) == SignalProducer < String , AnyError > . self
240239 expect ( type ( of: SignalProducer ( throwableResultAction) ) ) == SignalProducer < Result < String , NoError > , AnyError > . self
@@ -367,8 +366,8 @@ class SignalProducerSpec: QuickSpec {
367366 return . success( " OperationValue " )
368367 }
369368
370- SignalProducer ( operation) . start ( )
371- SignalProducer ( operation) . start ( )
369+ SignalProducer < String , NSError > ( operation) . start ( )
370+ SignalProducer < String , NSError > ( operation) . start ( )
372371
373372 expect ( operationRunTimes) == 2
374373 }
@@ -379,7 +378,7 @@ class SignalProducerSpec: QuickSpec {
379378 return . success( operationReturnValue)
380379 }
381380
382- let signalProducer = SignalProducer ( operation)
381+ let signalProducer = SignalProducer < String , NSError > ( operation)
383382
384383 expect ( signalProducer) . to ( sendValue ( operationReturnValue, sendError: nil , complete: true ) )
385384 }
@@ -390,7 +389,7 @@ class SignalProducerSpec: QuickSpec {
390389 return . failure( operationError)
391390 }
392391
393- let signalProducer = SignalProducer ( operation)
392+ let signalProducer = SignalProducer < String , NSError > ( operation)
394393
395394 expect ( signalProducer) . to ( sendValue ( nil , sendError: operationError, complete: false ) )
396395 }
@@ -400,7 +399,7 @@ class SignalProducerSpec: QuickSpec {
400399 it ( " should send a successful value then complete " ) {
401400 let operationReturnValue = " OperationValue "
402401
403- let signalProducer = SignalProducer { ( ) throws -> String in
402+ let signalProducer = SignalProducer < String , AnyError > { ( ) throws -> String in
404403 operationReturnValue
405404 }
406405
@@ -415,7 +414,7 @@ class SignalProducerSpec: QuickSpec {
415414 it ( " should send the error " ) {
416415 let operationError = TestError . default
417416
418- let signalProducer = SignalProducer { ( ) throws -> String in
417+ let signalProducer = SignalProducer < String , AnyError > { ( ) throws -> String in
419418 throw operationError
420419 }
421420
0 commit comments