File tree 4 files changed +6
-12
lines changed
4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 2
2
public protocol DiffProtocol : Collection , Sequence {
3
3
4
4
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.
5
10
typealias Index = Int
11
+ #endif
6
12
7
13
var elements : [ DiffElementType ] { get }
8
14
}
Original file line number Diff line number Diff line change 9
9
*/
10
10
public struct ExtendedDiff : DiffProtocol {
11
11
12
- #if swift(>=3.1)
13
- // The duplicate typealias is not required in Swift 3.1
14
- #else
15
12
public typealias Index = Int
16
- #endif
17
13
18
14
public enum Element {
19
15
case insert( at: Int )
Original file line number Diff line number Diff line change 1
1
2
2
public struct NestedDiff : DiffProtocol {
3
3
4
- #if swift(>=3.1)
5
- // The duplicate typealias is not required in Swift 3.1
6
- #else
7
4
public typealias Index = Int
8
- #endif
9
5
10
6
public enum Element {
11
7
case deleteSection( Int )
Original file line number Diff line number Diff line change 1
1
2
2
public struct NestedExtendedDiff : DiffProtocol {
3
3
4
- #if swift(>=3.1)
5
- // The duplicate typealias is not required in Swift 3.1
6
- #else
7
4
public typealias Index = Int
8
- #endif
9
5
10
6
public enum Element {
11
7
case deleteSection( Int )
You can’t perform that action at this time.
0 commit comments