Swift 3バイナリ演算子 '==='を2つの 'Date'オペランドに適用できないのはなぜですか?
public func ==(lhs: Date, rhs: Date) -> Bool {
return lhs === rhs || lhs.compare(rhs) == .orderedSame
}
スウィフト3にアップグレードした後、私は今、このエラー...
これを修正する方法上の任意の提案を「バイナリ演算子===
は2つのDate
オペランドに適用することはできません」を取得しますか?
Swift 3 Dateは、既にComparableプロトコルに準拠しているStructです。 http://stackoverflow.com/questions/39541879/swift-3-ambiguous-use-of-operator-when-comparing-two-dates/39541975#39541975 –