@@ -60,7 +60,7 @@ typealias MyInt = Int
60
60
( Int32 ) -> ( UInt32 ) ) ->
61
61
( ( Int8 ) -> ( UInt8 ) ) ) { }
62
62
63
- func returnsBlockWithInput( ) -> ( NSObject -> ( ) ) ? {
63
+ func returnsBlockWithInput( ) -> ( ( NSObject ) -> ( ) ) ? {
64
64
return nil
65
65
}
66
66
func returnsBlockWithParenthesizedInput( ) -> ( ( NSObject ) -> ( ) ) ? {
@@ -70,27 +70,27 @@ typealias MyInt = Int
70
70
return nil
71
71
}
72
72
73
- func blockWithTypealias( _ input: MyTuple -> MyInt ) { }
74
- func blockWithSimpleTypealias( _ input: MyInt -> MyInt ) { }
73
+ func blockWithTypealias( _ input: ( MyTuple ) -> MyInt ) { }
74
+ func blockWithSimpleTypealias( _ input: ( MyInt ) -> MyInt ) { }
75
75
76
76
func namedArguments( _ input: ( f1: Float , f2: Float , d1: Double , d2: Double ) -> ( ) ) { }
77
77
func blockTakesNamedBlock( _ input: ( block: ( ) -> ( ) ) -> ( ) ) { }
78
78
func returnsBlockWithNamedInput( ) -> ( ( object: NSObject ) -> ( ) ) ? {
79
79
return nil
80
80
}
81
81
82
- func blockWithTypealiasWithNames( _ input: MyNamedTuple -> MyInt ) { }
82
+ func blockWithTypealiasWithNames( _ input: ( MyNamedTuple ) -> MyInt ) { }
83
83
84
84
func blockWithKeyword( _ _Nullable: ( `class`: Int ) -> Int ) { }
85
85
86
- func functionPointers( _ input: @convention ( c) Int -> Int )
87
- -> @convention ( c) Int -> Int {
86
+ func functionPointers( _ input: @convention ( c) ( Int ) -> Int )
87
+ -> @convention ( c) ( Int ) -> Int {
88
88
return input
89
89
}
90
90
91
91
func functionPointerTakesAndReturnsFunctionPointer(
92
- _ input: @convention ( c) Int -> Int
93
- -> @convention ( c) Int -> Int
92
+ _ input: @convention ( c) ( Int ) -> ( Int )
93
+ -> @convention ( c) ( Int ) -> Int
94
94
) {
95
95
}
96
96
@@ -99,10 +99,10 @@ typealias MyInt = Int
99
99
return input
100
100
}
101
101
102
- var savedBlock : ( Int -> Int ) ?
102
+ var savedBlock : ( ( Int ) -> Int ) ?
103
103
var savedBlockWithName : ( ( x: Int ) -> Int ) ?
104
- var savedFunctionPointer : @convention ( c) Int -> Int = { $0 }
105
- var savedFunctionPointer2 : ( @convention ( c) Int -> Int ) ? = { $0 }
104
+ var savedFunctionPointer : @convention ( c) ( Int ) -> Int = { $0 }
105
+ var savedFunctionPointer2 : ( @convention ( c) ( Int ) -> Int ) ? = { $0 }
106
106
var savedFunctionPointerWithName : @convention ( c) ( x: Int ) -> Int = { $0 }
107
107
108
108
// The following uses a clang keyword as the name.
0 commit comments