fix compiler errors

This commit is contained in:
John Estropia
2017-04-21 15:07:26 +09:00
parent fe70b7a27d
commit 274a54451a
2 changed files with 1 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ public extension DynamicSchema {
case .integer64AttributeType:
valueType = Int64.self
if let defaultValue = (attribute.defaultValue as! Int64.ImportableNativeType?).flatMap(Int64.cs_fromImportableNativeType),
defaultValue != Int54.cs_emptyValue() {
defaultValue != Int64.cs_emptyValue() {
defaultString = ", default: \(defaultValue)"
}

View File

@@ -31,19 +31,16 @@ import Foundation
public extension DynamicObject where Self: CoreStoreObject {
@inline(__always)
public static func keyPath<O: CoreStoreObject, V: ImportableAttributeType>(_ attribute: (Self) -> ValueContainer<O>.Required<V>) -> String {
return attribute(self.meta).keyPath
}
@inline(__always)
public static func keyPath<O: CoreStoreObject, V: ImportableAttributeType>(_ attribute: (Self) -> ValueContainer<O>.Optional<V>) -> String {
return attribute(self.meta).keyPath
}
@inline(__always)
public static func `where`(_ condition: (Self) -> Where) -> Where {
return condition(self.meta)