mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This patch merges the two diagnostics complaining about asynchronous function declarations with incompatible attributes. The two are cdecl and ibaction at the moment.
8 lines
235 B
Swift
8 lines
235 B
Swift
// RUN: %target-typecheck-verify-swift -enable-objc-interop -disable-availability-checking
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
@_cdecl("async") // expected-error{{@_cdecl global function cannot be asynchronous}}
|
|
func asynchronous() async { }
|
|
|