Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0066-sr3687-updated.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

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