File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed
Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 22public 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}
Original file line number Diff line number Diff line change 99 */
1010public 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 )
Original file line number Diff line number Diff line change 11
22public 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 )
Original file line number Diff line number Diff line change 11
22public 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 )
You can’t perform that action at this time.
0 commit comments