Skip to content

Commit ace7f81

Browse files
committed
work around older swift bug
1 parent 75ae741 commit ace7f81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Basics/Environment/Environment.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ extension Environment: Collection {
254254
var underlying: Dictionary<EnvironmentKey, String>.Index
255255
}
256256
public typealias Element = (key: EnvironmentKey, value: String)
257+
// FIXME: Remove after upgrading past Swift 5.9
258+
// Required to be explicitly spelled out on older Swift compilers.
259+
public typealias Iterator = IndexingIterator<Self>
257260

258261
public var startIndex: Index {
259262
Index(underlying: self.storage.startIndex)

0 commit comments

Comments
 (0)