mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This attribute is only really useful to the compiler, so don't expose it to the user through e.g generated interfaces. Resolves rdar://76685011
15 lines
691 B
Swift
15 lines
691 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -print-module -print-interface -source-filename %s -module-to-print=ObjCConcurrency -function-definitions=false -enable-experimental-concurrency | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: concurrency
|
|
import _Concurrency
|
|
|
|
// CHECK-LABEL: class SlowServer : NSObject, ServiceProvider {
|
|
|
|
// rdar://76685011: Make sure we don't print @completionHandlerAsync in generated interfaces.
|
|
// CHECK-NOT: @completionHandlerAsync
|
|
// CHECK: func doSomethingSlow(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
|
|
// CHECK: func doSomethingSlow(_ operation: String) async -> Int
|