@@ -54,7 +54,8 @@ public func >>> <Transform: TransformType>(left: Transform.Object?, right: (Map,
54
54
}
55
55
56
56
57
- #if !swift(>=4.2)
57
+ // Code targeting the Swift 4.1 compiler and below.
58
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
58
59
/// Implicitly unwrapped optional object of basic type with Transform
59
60
public func <- < Transform: TransformType > ( left: inout Transform . Object ! , right: ( Map , Transform ) ) {
60
61
let ( map, transform) = right
@@ -113,7 +114,8 @@ public func >>> <Transform: TransformType>(left: [Transform.Object]?, right: (Ma
113
114
}
114
115
115
116
116
- #if !swift(>=4.2)
117
+ // Code targeting the Swift 4.1 compiler and below.
118
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
117
119
/// Implicitly unwrapped optional array of Basic type with Transform
118
120
public func <- < Transform: TransformType > ( left: inout [ Transform . Object ] ! , right: ( Map , Transform ) ) {
119
121
let ( map, transform) = right
@@ -172,7 +174,8 @@ public func >>> <Transform: TransformType>(left: [String: Transform.Object]?, ri
172
174
}
173
175
174
176
175
- #if !swift(>=4.2)
177
+ // Code targeting the Swift 4.1 compiler and below.
178
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
176
179
/// Implicitly unwrapped optional dictionary of Basic type with Transform
177
180
public func <- < Transform: TransformType > ( left: inout [ String : Transform . Object ] ! , right: ( Map , Transform ) ) {
178
181
let ( map, transform) = right
@@ -233,7 +236,8 @@ public func >>> <Transform: TransformType>(left: Transform.Object?, right: (Map,
233
236
}
234
237
235
238
236
- #if !swift(>=4.2)
239
+ // Code targeting the Swift 4.1 compiler and below.
240
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
237
241
/// Implicitly unwrapped optional Mappable objects that have transforms
238
242
public func <- < Transform: TransformType > ( left: inout Transform . Object ! , right: ( Map , Transform ) ) where Transform. Object: BaseMappable {
239
243
let ( map, transform) = right
@@ -292,7 +296,8 @@ public func >>> <Transform: TransformType>(left: Dictionary<String, Transform.Ob
292
296
}
293
297
294
298
295
- #if !swift(>=4.2)
299
+ // Code targeting the Swift 4.1 compiler and below.
300
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
296
301
/// Implicitly unwrapped Optional Dictionary of Mappable object <String, T: Mappable> with a transform
297
302
public func <- < Transform: TransformType > ( left: inout Dictionary < String , Transform . Object > ! , right: ( Map , Transform ) ) where Transform. Object: BaseMappable {
298
303
let ( map, transform) = right
@@ -377,7 +382,8 @@ public func >>> <Transform: TransformType>(left: Dictionary<String, [Transform.O
377
382
}
378
383
379
384
380
- #if !swift(>=4.2)
385
+ // Code targeting the Swift 4.1 compiler and below.
386
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
381
387
/// Implicitly unwrapped Optional Dictionary of Mappable object <String, T: Mappable> with a transform
382
388
public func <- < Transform: TransformType > ( left: inout Dictionary < String , [ Transform . Object ] > ! , right: ( Map , Transform ) ) where Transform. Object: BaseMappable {
383
389
let ( map, transform) = right
@@ -447,7 +453,8 @@ public func >>> <Transform: TransformType>(left: Array<Transform.Object>?, right
447
453
}
448
454
449
455
450
- #if !swift(>=4.2)
456
+ // Code targeting the Swift 4.1 compiler and below.
457
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
451
458
/// Implicitly unwrapped Optional array of Mappable objects
452
459
public func <- < Transform: TransformType > ( left: inout Array < Transform . Object > ! , right: ( Map , Transform ) ) where Transform. Object: BaseMappable {
453
460
let ( map, transform) = right
@@ -543,7 +550,8 @@ public func >>> <Transform: TransformType>(left: [[Transform.Object]]?, right: (
543
550
}
544
551
545
552
546
- #if !swift(>=4.2)
553
+ // Code targeting the Swift 4.1 compiler and below.
554
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
547
555
/// Implicitly unwrapped Optional array of array of objects with transform
548
556
public func <- < Transform: TransformType > ( left: inout [ [ Transform . Object ] ] ! , right: ( Map , Transform ) ) {
549
557
let ( map, transform) = right
@@ -618,7 +626,8 @@ public func >>> <Transform: TransformType>(left: Set<Transform.Object>?, right:
618
626
}
619
627
620
628
621
- #if !swift(>=4.2)
629
+ // Code targeting the Swift 4.1 compiler and below.
630
+ #if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
622
631
/// Implicitly unwrapped Optional set of Mappable objects with transform
623
632
public func <- < Transform: TransformType > ( left: inout Set < Transform . Object > ! , right: ( Map , Transform ) ) where Transform. Object: BaseMappable {
624
633
let ( map, transform) = right
0 commit comments