mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] ASTPrinter: Always print attributes after parameter specifiers
(cherry picked from commit 4fd4c00bc9)
This commit is contained in:
@@ -92,3 +92,12 @@ public func testExecutionConcurrent() async {}
|
||||
nonisolated(nonsending)
|
||||
public func testExecutionCaller() async {}
|
||||
// CHECK: nonisolated(nonsending) public func testExecutionCaller() async
|
||||
|
||||
public struct TestPlacementOfAttrsAndSpecifiers {
|
||||
// CHECK: public func test1<T>(_: sending @autoclosure () -> T)
|
||||
public func test1<T>(_: sending @autoclosure () -> T) {}
|
||||
// CHECK: public func test2<T>(_: borrowing @autoclosure () -> T)
|
||||
public func test2<T>(_: borrowing @autoclosure () -> T) {}
|
||||
// CHECK: public func test3<T>(_: inout () async -> T)
|
||||
public func test3<T>(_: inout () async -> T) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user