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/stmt/switch_stmt1.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ enum E {
6
6
}
7
7
8
8
func foo1(e :E, i :Int){
9
-
switch e {} // expected-error{{switch must be exhaustive, consider adding missing cases:}}
9
+
switch e {} // expected-error{{switch must be exhaustive}}
10
10
// expected-note@-1 {{missing case: '.e1'}}
11
11
// expected-note@-2 {{missing case: '.e2'}}
12
12
switch i {} // expected-error{{'switch' statement body must have at least one 'case' or 'default' block; do you want to add a default case?}}{{13-13=default: <#code#>\n}}
0 commit comments