mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mark imported `@completionHandlerAsync` attrs as implicit, which avoids printing them in generated interfaces. And for the sake of completion, serialize the implicit bit in case it's used elsewhere in the future. To make sure we continue to print `@completionHandlerAsync` attributes explicitly written by the user in Swift, add a SourceKit interface test. Resolves rdar://76685011
6 lines
237 B
Swift
6 lines
237 B
Swift
class ClassWithAsyncAndHandler {
|
|
@completionHandlerAsync("foo(_:)", completionHandlerIndex: 1)
|
|
func foo(_ operation: String, completionHandler handler: @escaping (Int) -> Void) {}
|
|
func foo(_ operation: String) async -> Int { 0 }
|
|
}
|