mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
406 B
Swift
10 lines
406 B
Swift
// RUN: %target-typecheck-verify-swift -enable-experimental-feature ParserDiagnostics
|
|
|
|
// FIXME: Swift parser is not enabled on Linux CI yet.
|
|
// REQUIRES: OS=macosx
|
|
// REQUIRES: asserts
|
|
|
|
_ = [(Int) -> async throws Int]()
|
|
// expected-error@-1{{'async throws' must preceed '->'}}
|
|
// expected-note@-2{{move 'async throws' in front of '->'}}{{15-21=}} {{21-28=}} {{20-21= }} {{12-12=async }} {{12-12=throws }}
|