Skip to content

Commit

Permalink
💚 Fix build failure in Xcode 12.5 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ftchirou committed Feb 8, 2021
1 parent 242ee4f commit 966d8a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PredicateKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

Pod::Spec.new do |spec|
spec.name = "PredicateKit"
spec.version = "1.2.1"
spec.version = "1.3.0"
spec.summary = "Write expressive and type-safe predicates for CoreData using key-paths, comparisons and logical operators, literal values, and functions."
spec.description = <<-DESC
PredicateKit allows Swift developers to write expressive and type-safe predicates for CoreData using key-paths, comparisons and logical operators, literal values, and functions.
Expand Down
7 changes: 5 additions & 2 deletions PredicateKit/Predicate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ extension NSSet: AnyArrayOrSet {
}

extension Optional: AnyArrayOrSet where Wrapped: AnyArrayOrSet {
public typealias Element = Wrapped.Element
}

public protocol AnyArray {
Expand All @@ -633,17 +634,19 @@ extension Array: AnyArray {
}

public protocol PrimitiveCollection {
associatedtype Element: Primitive
associatedtype PrimitiveElement: Primitive
}

extension Array: PrimitiveCollection where Element: Primitive {
public typealias PrimitiveElement = Element
}

extension Set: PrimitiveCollection where Element: Primitive {
public typealias PrimitiveElement = Element
}

extension Optional: PrimitiveCollection where Wrapped: PrimitiveCollection {
public typealias Element = Wrapped.Element
public typealias PrimitiveElement = Wrapped.PrimitiveElement
}

public protocol AdditiveCollection {
Expand Down

0 comments on commit 966d8a4

Please sign in to comment.