You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include optionality in AnyRegexOutput.Element.type
When reconstructing the type of a captured element for access through
the `AnyRegexOutput.Element.type` API, any optionality is being
omitted (e.g. `Int?` is returned as `Int`). This is both observable
through that API and results in a bug when accessing part of a
match's output through the dynamic member subscript (e.g. `match.1`).
In that case, the lack of optionality causes an incorrect calculation
of the output tuple member's position, resulting in the wrong member
being loaded and returned.
This change adds the missing optionality to the type.
Fixesswiftlang/swift#83022
0 commit comments