Skip to content

Commit 6c74b33

Browse files
committed
Minor test case fixes
1 parent 61ac253 commit 6c74b33

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/Parse/ConditionalCompilation/switch_case.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ func foo(x: E, intVal: Int) {
209209
fallthrough // expected-error {{'fallthrough' from a case which doesn't bind variable 'val'}}
210210
#if ENABLE_C
211211
case let val:
212+
_ = val
212213
break
213214
#endif
214215
case 2:

test/Parse/matching_patterns.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,6 @@ case (_?)?: break // expected-warning {{case is already handled by previous patt
333333
let (responseObject: Int?) = op1
334334
// expected-error @-1 {{expected ',' separator}} {{25-25=,}}
335335
// expected-error @-2 {{expected pattern}}
336-
// expected-error @-3 {{expression type 'Int?' is ambiguous without more context}}
336+
// expected-error @-3 {{cannot convert value of type 'Int?' to specified type '(responseObject: _)'}}
337337

338338

0 commit comments

Comments
 (0)