fix Swift 4.2 compile error (#384)

Motivation:

We had a public typealias for an internal type, that's an error now in
Swift 4.2.

Modifications:

make the typealias internal.

Result:

compiles in Swift 4.2
This commit is contained in:
Johannes Weiß 2018-05-02 18:42:48 +01:00 committed by Cory Benfield
parent 8063cd318b
commit 359f35930a
1 changed files with 2 additions and 2 deletions

View File

@ -91,10 +91,10 @@ extension PriorityQueue {
@available(*, deprecated, renamed: "Element")
public typealias T = Element
@available(*, deprecated, renamed: "PriorityQueue.Iterator")
public typealias PriorityQueueIterator<T: Comparable> = PriorityQueue<T>.Iterator
typealias PriorityQueueIterator<T: Comparable> = PriorityQueue<T>.Iterator
}
extension PriorityQueue.Iterator {
@available(*, deprecated, renamed: "Element")
public typealias T = Element
typealias T = Element
}