Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0066-sr3687.swift
Ben Cohen ea2f64cad2 [stdlib] Add Sequence.Element, change ExpressibleByArrayLiteral.Element to ArrayLiteralElement (#8990)
* 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
2017-05-14 06:33:25 -07:00

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()
}
}