Skip to content

Commit

Permalink
fix Swift 4.2 compile error (#384)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weissi authored and Lukasa committed May 2, 2018
1 parent 8063cd3 commit 359f359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/NIO/PriorityQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 359f359

Please sign in to comment.