Skip to content

Commit cb3e640

Browse files
committed
Invert the check for now to actually fix the issue
1 parent 5ab5ee1 commit cb3e640

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

Sources/Diff.swift

+6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
public protocol DiffProtocol: Collection, Sequence {
33

44
associatedtype DiffElementType
5+
6+
#if swift(>=3.1)
7+
// The typealias is causing crashes in SourceKitService under Swift 3.1 snapshots.
8+
#else
9+
// TODO: Verify that the typealias workaround is still required when Xcode 8.3 is released.
510
typealias Index = Int
11+
#endif
612

713
var elements: [DiffElementType] { get }
814
}

Sources/ExtendedDiff.swift

-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
*/
1010
public struct ExtendedDiff: DiffProtocol {
1111

12-
#if swift(>=3.1)
13-
// The duplicate typealias is not required in Swift 3.1
14-
#else
1512
public typealias Index = Int
16-
#endif
1713

1814
public enum Element {
1915
case insert(at: Int)

Sources/NestedDiff.swift

-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11

22
public struct NestedDiff: DiffProtocol {
33

4-
#if swift(>=3.1)
5-
// The duplicate typealias is not required in Swift 3.1
6-
#else
74
public typealias Index = Int
8-
#endif
95

106
public enum Element {
117
case deleteSection(Int)

Sources/NestedExtendedDiff.swift

-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11

22
public struct NestedExtendedDiff: DiffProtocol {
33

4-
#if swift(>=3.1)
5-
// The duplicate typealias is not required in Swift 3.1
6-
#else
74
public typealias Index = Int
8-
#endif
95

106
public enum Element {
117
case deleteSection(Int)

0 commit comments

Comments
 (0)