File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -418,11 +418,14 @@ func testNonExhaustiveSwitch(e: E) {
418
418
// rdar://problem/59856491
419
419
struct TestConstraintGenerationErrors {
420
420
@TupleBuilder var buildTupleFnBody : String {
421
+ let a = nil // expected-error {{'nil' requires a contextual type}}
421
422
String ( nothing) // expected-error {{cannot find 'nothing' in scope}}
422
423
}
423
424
424
425
func buildTupleClosure( ) {
425
- tuplify ( true ) { _ in
426
+ // FIXME: suppress the ambiguity error
427
+ tuplify ( true ) { _ in // expected-error {{type of expression is ambiguous without more context}}
428
+ let a = nothing // expected-error {{cannot find 'nothing' in scope}}
426
429
String ( nothing) // expected-error {{cannot find 'nothing' in scope}}
427
430
}
428
431
}
You can’t perform that action at this time.
0 commit comments