mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] ASTPrinter: Always print nonisolated(nonsending) parameter specifier first
This avoids any possible positioning issues between specifiers
and attributes.
(cherry picked from commit 6662a48533)
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
|
||||
// REQUIRES: concurrency
|
||||
|
||||
public struct TestWithAttrs {
|
||||
// CHECK: #if compiler(>=5.3) && $AsyncExecutionBehaviorAttributes
|
||||
// CHECK-NEXT: public func test(_: nonisolated(nonsending) @escaping () async -> Swift.Void)
|
||||
// CHECK-NEXT: #endif
|
||||
public func test(_: nonisolated(nonsending) @escaping () async -> Void) {}
|
||||
}
|
||||
|
||||
public struct Test {
|
||||
// CHECK: #if compiler(>=5.3) && $AsyncExecutionBehaviorAttributes
|
||||
// CHECK-NEXT: nonisolated(nonsending) public init() async
|
||||
|
||||
Reference in New Issue
Block a user