mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove an optional chain of a success parameter, as it will no longer be optional, similar to how we remove a force unwrap. Note that while this is a locally valid transform within the optional chain, e.g `foo?.x` -> `foo.x`, it may change the type of the overall chain, which could cause errors elsewhere in the code. However this is generally more useful to the user than just leaving `foo` as a placeholder. Note this is only the case when no other optionals are involved in the chain, e.g `foo?.x?.y` -> `foo.x?.y` is completely valid. Resolves rdar://74014826.
192 KiB
192 KiB