File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ func f(_ fn: @concurrent (Int) -> Int) { }
7
7
// Okay to overload @concurrent vs. not concurrent
8
8
func f( _ fn: ( Int ) -> Int ) { }
9
9
10
+ // Concurrent attribute with other function attributes.
11
+ func onEscaping( _ fn: @escaping @concurrent ( Int ) -> Int ) { }
12
+ func onEscaping2( _ fn: @concurrent @escaping ( Int ) -> Int ) { }
13
+ func onAutoclosure( _ fn: @autoclosure @concurrent ( ) -> Int ) { }
14
+ func onAutoclosure2( _ fn: @concurrent @autoclosure ( ) -> Int ) { }
15
+ func onEscapingAutoclosure( _ fn: @concurrent @autoclosure @escaping ( ) -> Int ) { }
16
+ func onEscapingAutoclosure2( _ fn: @escaping @autoclosure @concurrent ( ) -> Int ) { }
10
17
11
18
func acceptsConcurrent( _ fn: @concurrent ( Int ) -> Int ) { }
12
19
func acceptsNonConcurrent( _ fn: ( Int ) -> Int ) { }
You can’t perform that action at this time.
0 commit comments