You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo(x:)(ProjectionWrapper(wrappedValue:0)) // expected-error {{cannot convert value of type 'ProjectionWrapper<Int>' to expected argument type 'Int'}}
177
+
foo(x:)(ProjectionWrapper(wrappedValue:"")) // expected-error {{cannot convert value of type 'ProjectionWrapper<String>' to expected argument type 'Int'}}
178
+
foo(x:)("") // expected-error {{cannot convert value of type 'String' to expected argument type 'Int'}}
179
+
180
+
foo($x:)(ProjectionWrapper(wrappedValue:"")) // expected-error {{cannot convert value of type 'String' to expected argument type 'Int'}}
181
+
foo($x:)(0) // expected-error {{cannot convert value of type 'Int' to expected argument type 'ProjectionWrapper<Int>'}}
182
+
foo($x:)("") // expected-error {{cannot convert value of type 'String' to expected argument type 'ProjectionWrapper<Int>'}}
183
+
184
+
func bar(x:Int){} // expected-note 2{{parameter 'x' does not have an attached property wrapper}}
185
+
bar($x:)(0) // expected-error {{cannot use property wrapper projection argument}}
186
+
_ =bar($x:) // expected-error {{cannot use property wrapper projection argument}}
0 commit comments