work around issue that crashes the Swift 3.2 compiler (fixes #171)

This commit is contained in:
John Estropia committed 2017-06-08 20:18:50 +09:00
1 parent 49b8b9c372
commit f618617053
32 files changed
+280 -622

No files matched your search

@@ -75,12 +75,12 @@ internal extension NSEntityDescription {
}
}
internal var keyPathsByAffectedKeyPaths: [KeyPath: Set<KeyPath>] {
internal var keyPathsByAffectedKeyPaths: [RawKeyPath: Set<RawKeyPath>] {
get {
if let userInfo = self.userInfo,
let function = userInfo[UserInfoKey.CoreStoreManagedObjectKeyPathsByAffectedKeyPaths] as! [KeyPath: Set<KeyPath>]? {
let function = userInfo[UserInfoKey.CoreStoreManagedObjectKeyPathsByAffectedKeyPaths] as! [RawKeyPath: Set<RawKeyPath>]? {
return function
}