mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`await` in an expresssion should be marked as a contextual keyword, not as an identifier Resolves apple/sourcekit-lsp#591
8 lines
156 B
Swift
8 lines
156 B
Swift
// RUN: %sourcekitd-test -req=syntax-map %s > %t.response
|
|
// RUN: %diff -u %s.response %t.response
|
|
|
|
func foo() async {}
|
|
func test() async {
|
|
await foo()
|
|
}
|