Skip to content

Commit 1b6a9d2

Browse files
committed
Help type inference along
1 parent 3676a1d commit 1b6a9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSIndexSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ open class NSIndexSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
390390
let ranges = _ranges[startRangeIndex...endRangeIndex]
391391
let rangeSequence = (reverse ? AnyCollection(ranges.reversed()) : AnyCollection(ranges))
392392
withoutActuallyEscaping(block) { (closure: @escaping (P, UnsafeMutablePointer<ObjCBool>) -> R) -> () in
393-
let iteration = { (rangeIdx) in
393+
let iteration : (Int) -> Void = { (rangeIdx) in
394394
lock.lock()
395395
var stop = ObjCBool(sharedStop)
396396
lock.unlock()

0 commit comments

Comments
 (0)