mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Start classifying all potential throw sites within a constraint system and associate them with the nearest enclosing catch node. Then, determine the thrown error type for a given catch node by taking the union of the thrown errors at each potential throw site. Use this to compute the error type thrown from the body of a `do..catch` block within a closure. This behavior is limited to the upcoming feature `FullTypedThrows`.
604 KiB
604 KiB