mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* [Diagnostics] Add a fix-it for try instead of throws in function decls and types.
Sometimes one would misstype `throws` for `try` so we provide a fix-it for that.
It might happen in two cases:
In function declarations:
```swift
func foo() try {}
```
In function types:
```swift
let f = () try -> Int
```
Resolves SR-11574.
46 KiB
46 KiB