Skip to content

Commit

Permalink
[CoreSummit] [tvOS] Fixed tvOS compiler crash
Browse files Browse the repository at this point in the history
Hopefully this will be fixed in the future
  • Loading branch information
colemancda committed Nov 16, 2017
1 parent 09b155d commit fe5647d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenStack Summit/CoreSummit/Fault.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ public extension Fault {

public func == <T: Unique> (lhs: Fault<T>, rhs: Fault<T>) -> Bool {

#if swift(>=3.2) && os(tvOS)
return false // FIXME: Compiler error in Xcode 9
#else
return false
switch (lhs, rhs) {
case let (.identifier(lhsValue), .identifier(rhsValue)): return lhsValue == rhsValue
case let (.value(lhsValue), .value(rhsValue)): return lhsValue == rhsValue
default: return false
}
#endif
}

0 comments on commit fe5647d

Please sign in to comment.