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
@@ -623,3 +623,15 @@ struct MyView {
623
623
""
624
624
}
625
625
}
626
+
627
+
// Make sure throwing function builder closures are implied.
628
+
enumMyError:Error{
629
+
case boom
630
+
}
631
+
632
+
do{
633
+
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