Open
Description
To Reproduce
struct A {
var p: Int {
async get throws { return 0 }
}
}
Expected behavior
- Fix-it to replace
async get throws
withget 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)
Metadata
Metadata
Assignees
Labels
Feature → declarations: Variable (property) accessorsFeature → concurrency: asynchronous function aka the async/await patternA deviation from expected or documented behavior. Also: expected but undesirable behavior.The Swift compiler itselfFeature: umbrella label for concurrency language featuresFeature: declarationsBug: Diagnostics Quality of ImplementationArea → compiler: The legacy C++ parser