Fix compile errors for Xcode 9 beta 5

This commit is contained in:
John Rommel Estropia committed 2017-08-08 08:02:05 +09:00
1 parent a52acf2ebd
commit f7aaf4fb2a
2 files changed
+1 -10

No files matched your search

@@ -1093,15 +1093,6 @@ fileprivate extension String {
return String(repeating: " ", count: level * 4)
}
fileprivate func trimSwiftModuleName() -> String {
if self.hasPrefix("Swift.") {
return self.substring(from: "Swift.".endIndex)
}
return self
}
fileprivate mutating func indent(_ level: Int) {
self = self.replacingOccurrences(of: "\n", with: "\n\(String.indention(level))")
+1 -1
View File
@@ -538,7 +538,7 @@ public final class CoreStoreSchema: DynamicSchema {
}
else {
let newMethod = class_getClassMethod(managedObjectClass, newSelector)
let newMethod = class_getClassMethod(managedObjectClass, newSelector)!
method_exchangeImplementations(origMethod, newMethod)
}
}