stdlib: add tests for generic parameter names on EnumerateGenerator,

EnumerateSequence

Part of rdar://21429126

Swift SVN r29629
This commit is contained in:
Dmitri Hrybenko
2015-06-24 20:41:58 +00:00
parent 9dff1aa407
commit fdd73a57b4
2 changed files with 16 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ public func startsWith<
/// - Note: Idiomatic usage is to call `enumerate` instead of
/// constructing an `EnumerateGenerator` directly.
public struct EnumerateGenerator<
Base: GeneratorType
Base : GeneratorType
> : GeneratorType, SequenceType {
/// The type of element returned by `next()`.
public typealias Element = (index: Int, element: Base.Element)