Files
swift-mirror/test/IDE/print_objc_concurrency_interface.swift
Hamish Knight a2b5f68ac8 [AST] Mark @completionHandlerAsync user-inaccessible
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
2021-04-29 22:29:55 +01:00

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