struct A {
var p: Int {
async get throws { return 0 }
}
}
Expected behavior
Fix-it to replace async get throws with get async throws
Actual behavior
error: repl.swift:3:9: error: found 'async' in expression; did you mean 'await'?
async get throws {
^~~~~
await
error: repl.swift:3:19: error: 'throws' may only occur before '->'
async get throws {
^
Environment
OS: macOS 13.0 beta 1
Swift version: 5.7 (swiftlang-5.7.0.113.202 clang-1400.0.16.2)
To Reproduce
Expected behavior
async get throws
withget async throws
Actual behavior
Environment