We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac92f4e commit 6b0933aCopy full SHA for 6b0933a
test/Constraints/function.swift
@@ -263,3 +263,8 @@ func testInvalidTupleImplosions() {
263
func takesInout(_ x: Int, _ y: inout String) {}
264
tuplify(takesInout) // expected-error {{cannot convert value of type '(Int, inout String) -> ()' to expected argument type '(Int) -> Void'}}
265
}
266
+
267
+// SR-15179
268
+func SR15179<Ts>(_ fn: @escaping (Ts) -> Void) {}
269
+func fn(_ x: inout Int, _ y: inout Int) {}
270
+SR15179(fn) // expected-error{{cannot convert value of type '(inout Int, inout Int) -> ()' to expected argument type '(Int) -> Void'}}
0 commit comments