mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix ambiguous expression type
This commit is contained in:
@@ -102,7 +102,7 @@ public struct IndexingGenerator<Elements : Indexable>
|
||||
/// - Requires: No preceding call to `self.next()` has returned `nil`.
|
||||
public mutating func next() -> Elements._Element? {
|
||||
guard _position != _elements.endIndex else { return .None }
|
||||
let element = .Some(_elements[_position])
|
||||
let element: Elements._Element? = .Some(_elements[_position])
|
||||
_position = _position.successor()
|
||||
return element
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user