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 ae93790 commit c1f43c8Copy full SHA for c1f43c8
test/Constraints/closures.swift
@@ -1097,3 +1097,11 @@ struct R_76250381<Result, Failure: Error> {
1097
return false
1098
}
1099
1100
+
1101
+// SR-13483
1102
+(0..<10).map { x, y in }
1103
+// expected-error@-1 {{contextual closure type '((Range<Int>).Element) throws -> ()' expects 1 argument, but 2 were used in closure body}}
1104
+(0..<10).map { x, y, z in }
1105
+// expected-error@-1 {{contextual closure type '((Range<Int>).Element) throws -> ()' expects 1 argument, but 3 were used in closure body}}
1106
+(0..<10).map { x, y, z, w in }
1107
+// expected-error@-1 {{contextual closure type '((Range<Int>).Element) throws -> ()' expects 1 argument, but 4 were used in closure body}}
0 commit comments