mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* Delegated-to `Optional` ctors were always handled as if they were failable, resulting in false-positive delegation errors. * Delegations via `try?` were not diagnosed if the called ctor had IUO failability on top of being `throws`. SILGen would then handle the `try?` as if it was a `try!`. * Delegations via `try?` were diagnosed with the wrong message if the `try?` was nested inside a `try!`, e.g. `try! try self.init(nonFailable:)` * If there are issues with both `try?` and failability of the called initializer, diagnose both.