swift
3dd4df23 - [Typed throws] Location based lookup for the thrown error type

Commit
2 years ago
[Typed throws] Location based lookup for the thrown error type Introduce a new API to find the AST node that catches or rethrows an error thrown from the given source location. Use it to determine the thrown error type to use for type checking a `throw` statement, which begins as `any Error` within a `do..catch` and is later refined.
Author
Committer
Parents
Loading