WIP: broken generics

This commit is contained in:
John Estropia
2016-09-06 20:16:46 +09:00
parent b502895d63
commit 82de482191
95 changed files with 610 additions and 677 deletions

View File

@@ -90,11 +90,11 @@ public enum MigrationResult: Hashable {
switch self {
case .success(let migrationTypes):
return self.boolValue.hashValue
return true.hashValue
^ migrationTypes.map { $0.hashValue }.reduce(0, ^).hashValue
case .failure(let error):
return self.boolValue.hashValue ^ error.hashValue
return false.hashValue ^ error.hashValue
}
}