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
14 lines
246 B
Swift
14 lines
246 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
public protocol QHash : Collection, ExpressibleByArrayLiteral {
|
|
associatedtype Key where Key == Element
|
|
|
|
init()
|
|
}
|
|
|
|
extension QHash {
|
|
init(withElements newElements: Key...) {
|
|
self.init()
|
|
}
|
|
}
|