mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* Give Sequence a top-level Element, constrain Iterator to match * Remove many instances of Iterator. * Fixed various hard-coded tests * XFAIL a few tests that need further investigation * Change assoc type for arrayLiteralConvertible * Mop up remaining "better expressed as a where clause" warnings * Fix UnicodeDecoders prototype test * Fix UIntBuffer * Fix hard-coded Element identifier in CSDiag * Fix up more tests * Account for flatMap changes
16 lines
280 B
Swift
16 lines
280 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
// <rdar://problem/31798398>
|
|
|
|
public protocol QHash : Collection, ExpressibleByArrayLiteral {
|
|
associatedtype Key
|
|
typealias Element = Key
|
|
|
|
init()
|
|
}
|
|
|
|
extension QHash {
|
|
init(withElements newElements: Key...) {
|
|
self.init()
|
|
}
|
|
}
|