There are two merge methods in RACSignal:
- (RACSignal *)merge:(RACSignal *)signal;
+ (RACSignal *)merge:(id<NSFastEnumeration>)signals;
When I write RACSignal.merge it references static method:
class func merge(signals: NSFastEnumeration!) -> RACSignal!
How to reference object method? I can't write self.merge, because it is in wrapper class and self is not RACSignal.
As methods in Swift are curried class functions, compiler has to decide which overload to choose.
To reference instance's
mergemethod you need to specify it's exact type:let instanceMerge: RACSignal -> RACSignal! -> RACSignal! = RACSignal.merge