@@ -29,6 +29,12 @@ public func testSimpleWrapperParameter(@Wrapper value: Int) {
29
29
_ = _value
30
30
_ = $value
31
31
32
+ // property wrapper backing initializer of value #1 in testSimpleWrapperParameter(value:)
33
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter26testSimpleWrapperParameter5valueyAA0F0VySiG_tFACL_SivpfP : $@convention(thin) (Int) -> Wrapper<Int>
34
+
35
+ // property wrapper init from projected value of value #1 in testSimpleWrapperParameter(value:)
36
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter26testSimpleWrapperParameter5valueyAA0F0VySiG_tFACL_SivpfW : $@convention(thin) (Projection<Int>) -> Wrapper<Int>
37
+
32
38
// getter of $value #1 in testSimpleWrapperParameter(value:)
33
39
// CHECK: sil private [ossa] @$s26property_wrapper_parameter26testSimpleWrapperParameter5valueyAA0F0VySiG_tF6$valueL_AA10ProjectionVySiGvg : $@convention(thin) (Wrapper<Int>) -> Projection<Int>
34
40
@@ -39,15 +45,15 @@ public func testSimpleWrapperParameter(@Wrapper value: Int) {
39
45
// CHECK-LABEL: sil hidden [ossa] @$s26property_wrapper_parameter28simpleWrapperParameterCaller10projectionyAA10ProjectionVySiG_tF : $@convention(thin) (Projection<Int>) -> ()
40
46
func simpleWrapperParameterCaller( projection: Projection < Int > ) {
41
47
testSimpleWrapperParameter ( value: projection. wrappedValue)
42
- // CHECK: function_ref @$s26property_wrapper_parameter7WrapperV12wrappedValueACyxGx_tcfC : $@convention(method) <τ_0_0> (@in τ_0_0, @thin Wrapper<τ_0_0>.Type ) -> @out Wrapper<τ_0_0 >
48
+ // CHECK: function_ref @$s26property_wrapper_parameter26testSimpleWrapperParameter5valueyAA0F0VySiG_tFACL_SivpfP : $@convention(thin) (Int ) -> Wrapper<Int >
43
49
44
50
testSimpleWrapperParameter ( $value: projection)
45
- // CHECK: function_ref @$s26property_wrapper_parameter7WrapperV14projectedValueACyxGAA10ProjectionVyxG_tcfC : $@convention(method) <τ_0_0> (@in Projection<τ_0_0>, @thin Wrapper<τ_0_0>.Type ) -> @out Wrapper<τ_0_0 >
51
+ // CHECK: function_ref @$s26property_wrapper_parameter26testSimpleWrapperParameter5valueyAA0F0VySiG_tFACL_SivpfW : $@convention(thin) ( Projection<Int> ) -> Wrapper<Int >
46
52
}
47
53
48
54
// CHECK-LABEL: sil hidden [ossa] @$s26property_wrapper_parameter33testSimpleClosureWrapperParameteryyF : $@convention(thin) () -> ()
49
55
func testSimpleClosureWrapperParameter( ) {
50
- let closure : ( Int ) -> Void = { ( @Wrapper value) in
56
+ let closure : ( Int ) -> Void = { ( @Wrapper value: Int ) in
51
57
_ = value
52
58
_ = _value
53
59
_ = $value
@@ -61,6 +67,9 @@ func testSimpleClosureWrapperParameter() {
61
67
// closure #1 in implicit closure #1 in testSimpleClosureWrapperParameter()
62
68
// CHECK: sil private [ossa] @$s26property_wrapper_parameter33testSimpleClosureWrapperParameteryyFySicfu_yAA0G0VySiGcfU_ : $@convention(thin) (Wrapper<Int>) -> ()
63
69
70
+ // property wrapper backing initializer of value #1 in closure #1 in implicit closure #1 in testSimpleClosureWrapperParameter()
71
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter33testSimpleClosureWrapperParameteryyFySicfu_yAA0G0VySiGcfU_5valueL_SivpfP : $@convention(thin) (Int) -> Wrapper<Int>
72
+
64
73
// getter of $value #1 in closure #1 in implicit closure #1 in testSimpleClosureWrapperParameter()
65
74
// CHECK: sil private [ossa] @$s26property_wrapper_parameter33testSimpleClosureWrapperParameteryyFySicfu_yAA0G0VySiGcfU_6$valueL_AA10ProjectionVySiGvg : $@convention(thin) (Wrapper<Int>) -> Projection<Int>
66
75
@@ -96,6 +105,12 @@ func testNonMutatingSetter(@NonMutatingSetterWrapper value1: String, @ClassWrapp
96
105
_ = value1
97
106
value1 = " hello! "
98
107
108
+ // property wrapper backing initializer of value1 #1 in testNonMutatingSetter(value1:value2:)
109
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter21testNonMutatingSetter6value16value2yAA0efG7WrapperVySSG_AA05ClassJ0CySiGtFACL_SSvpfP : $@convention(thin) (@owned String) -> @owned NonMutatingSetterWrapper<String>
110
+
111
+ // property wrapper backing initializer of value2 #1 in testNonMutatingSetter(value1:value2:)
112
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter21testNonMutatingSetter6value16value2yAA0efG7WrapperVySSG_AA05ClassJ0CySiGtFADL_SivpfP : $@convention(thin) (Int) -> @owned ClassWrapper<Int>
113
+
99
114
// getter of value1 #1 in testNonMutatingSetter(value1:value2:)
100
115
// CHECK: sil private [ossa] @$s26property_wrapper_parameter21testNonMutatingSetter6value16value2yAA0efG7WrapperVySSG_AA05ClassJ0CySiGtFACL_SSvg : $@convention(thin) (@guaranteed NonMutatingSetterWrapper<String>) -> @owned String
101
116
@@ -127,7 +142,7 @@ struct ProjectionWrapper<Value> {
127
142
128
143
// CHECK-LABEL: sil hidden [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tF : $@convention(thin) (ProjectionWrapper<Int>) -> ()
129
144
func testImplicitPropertyWrapper( projection: ProjectionWrapper < Int > ) {
130
- let multiStatement : ( ProjectionWrapper < Int > ) -> Void = { $value in
145
+ let multiStatement : ( ProjectionWrapper < Int > ) -> Void = { ( $value: ProjectionWrapper < Int > ) in
131
146
_ = value
132
147
_ = _value
133
148
_ = $value
@@ -141,13 +156,16 @@ func testImplicitPropertyWrapper(projection: ProjectionWrapper<Int>) {
141
156
// closure #1 in implicit closure #1 in testImplicitPropertyWrapper(projection:)
142
157
// CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFyAFcfu_yAFcfU_ : $@convention(thin) (ProjectionWrapper<Int>) -> ()
143
158
159
+ // property wrapper init from projected value of $value #1 in closure #1 in implicit closure #1 in testImplicitPropertyWrapper(projection:)
160
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFyAFcfu_yAFcfU_6$valueL_AFvpfW : $@convention(thin) (ProjectionWrapper<Int>) -> ProjectionWrapper<Int>
161
+
144
162
// getter of $value #1 in closure #1 in implicit closure #1 in testImplicitPropertyWrapper(projection:)
145
163
// CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFyAFcfu_yAFcfU_6$valueL_AFvg : $@convention(thin) (ProjectionWrapper<Int>) -> ProjectionWrapper<Int>
146
164
147
165
// getter of value #1 in closure #1 in implicit closure #1 in testImplicitPropertyWrapper(projection:)
148
166
// CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFyAFcfu_yAFcfU_5valueL_Sivg : $@convention(thin) () -> Int
149
167
150
- let _: ( ProjectionWrapper < Int > ) -> ( Int , ProjectionWrapper < Int > ) = { $value in
168
+ let _: ( ProjectionWrapper < Int > ) -> ( Int , ProjectionWrapper < Int > ) = { ( $value: ProjectionWrapper < Int > ) in
151
169
( value, $value)
152
170
}
153
171
@@ -157,6 +175,9 @@ func testImplicitPropertyWrapper(projection: ProjectionWrapper<Int>) {
157
175
// closure #2 in implicit closure #2 in testImplicitPropertyWrapper(projection:)
158
176
// CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFSi_AFtAFcfu0_Si_AFtAFcfU0_ : $@convention(thin) (ProjectionWrapper<Int>) -> (Int, ProjectionWrapper<Int>)
159
177
178
+ // property wrapper init from projected value of $value #1 in closure #2 in implicit closure #2 in testImplicitPropertyWrapper(projection:)
179
+ // CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFSi_AFtAFcfu0_Si_AFtAFcfU0_6$valueL_AFvpfW : $@convention(thin) (ProjectionWrapper<Int>) -> ProjectionWrapper<Int>
180
+
160
181
// getter of $value #1 in closure #2 in implicit closure #2 in testImplicitPropertyWrapper(projection:)
161
182
// CHECK: sil private [ossa] @$s26property_wrapper_parameter27testImplicitPropertyWrapper10projectionyAA010ProjectionG0VySiG_tFSi_AFtAFcfu0_Si_AFtAFcfU0_6$valueL_AFvg : $@convention(thin) (ProjectionWrapper<Int>) -> ProjectionWrapper<Int>
162
183
0 commit comments