mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We were trying to get fancy rewriting cases where multiple 'if let' clauses were used to unwrap a double optional, but in testing that turned out to be too unreliable. Now we simply detect any 'try?' expressions whose behavior will change, and add an explicit 'as OldType' to the expression, in order to preserve the original behavior.
3.3 KiB
3.3 KiB