From 780ff4e60b5b29c3a4e06f6793be941e3d2dcf8a Mon Sep 17 00:00:00 2001 From: John Estropia Date: Mon, 2 Oct 2017 11:10:28 +0900 Subject: [PATCH] fix compile errors --- Sources/OrderBy.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/OrderBy.swift b/Sources/OrderBy.swift index aed248c..39e92ee 100644 --- a/Sources/OrderBy.swift +++ b/Sources/OrderBy.swift @@ -262,7 +262,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Required { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Required { return .ascending(attribute(D.meta).keyPath) } @@ -270,7 +270,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Optional { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Optional { return .ascending(attribute(D.meta).keyPath) } @@ -278,7 +278,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Required { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Required { return .ascending(attribute(D.meta).keyPath) } @@ -286,7 +286,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Optional { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Optional { return .ascending(attribute(D.meta).keyPath) } @@ -294,7 +294,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Required { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Required { return .descending(attribute(D.meta).keyPath) } @@ -302,7 +302,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Optional { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Optional { return .descending(attribute(D.meta).keyPath) } @@ -310,7 +310,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Required { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Required { return .descending(attribute(D.meta).keyPath) } @@ -318,7 +318,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Optional { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Optional { return .descending(attribute(D.meta).keyPath) }