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
Copy file name to clipboardExpand all lines: test/Constraints/function_builder_diags.swift
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -620,3 +620,15 @@ struct MyView {
620
620
""
621
621
}
622
622
}
623
+
624
+
// Make sure throwing function builder closures are implied.
625
+
enumMyError:Error{
626
+
case boom
627
+
}
628
+
629
+
do{
630
+
tuplify(true){ c in // expected-error{{invalid conversion from throwing function of type '(Bool) throws -> String' to non-throwing function type '(Bool) -> String'}}
0 commit comments