Skip to content

Commit a9c5d29

Browse files
amiraliescristianoc
authored andcommitted
Update test snapshot
1 parent 27b78ff commit a9c5d29

File tree

1 file changed

+65
-12
lines changed

1 file changed

+65
-12
lines changed

jscomp/build_tests/super_errors/expected/warnings5.res.expected

Lines changed: 65 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
2323
14 │
2424
15 │ switch y {
2525

26-
You forgot to handle a possible case here, though we don't have more information on the value.
26+
You forgot to handle a possible case here, for example:
27+
{otherValue: true, _}
2728

2829

2930
Warning number 9
@@ -50,7 +51,9 @@ Either bind these labels explicitly or add ', _' to the pattern.
5051
18 │
5152
19 │ let arr = [1]
5253

53-
You forgot to handle a possible case here, though we don't have more information on the value.
54+
You forgot to handle a possible case here, for example:
55+
{typ: WithPayload(false), _}
56+
| {typ: Variant | One | Two | Three | Four | Five | Six | Seven(_), _}
5457

5558

5659
Warning number 8
@@ -64,7 +67,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
6467
24 │
6568
25 │ switch arr {
6669

67-
You forgot to handle a possible case here, though we don't have more information on the value.
70+
You forgot to handle a possible case here, for example:
71+
[_]
6872

6973

7074
Warning number 8
@@ -78,7 +82,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
7882
28 │
7983
29 │ switch arr {
8084

81-
You forgot to handle a possible case here, though we don't have more information on the value.
85+
You forgot to handle a possible case here, for example:
86+
[]
8287

8388

8489
Warning number 8
@@ -92,7 +97,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
9297
32 │
9398
33 │ let lst = list{}
9499

95-
You forgot to handle a possible case here, though we don't have more information on the value.
100+
You forgot to handle a possible case here, for example:
101+
[1, 0] | [0, _] | []
96102

97103

98104
Warning number 8
@@ -101,12 +107,13 @@ Either bind these labels explicitly or add ', _' to the pattern.
101107
33 │ let lst = list{}
102108
34 │
103109
35 │ switch lst {
104-
36 │  | list{} => ()
110+
36 │ | list{} => ()
105111
37 │ }
106112
38 │
107113
39 │ switch lst {
108114

109-
You forgot to handle a possible case here, though we don't have more information on the value.
115+
You forgot to handle a possible case here, for example:
116+
list{_, ..._}
110117

111118

112119
Warning number 8
@@ -115,12 +122,13 @@ Either bind these labels explicitly or add ', _' to the pattern.
115122
37 │ }
116123
38 │
117124
39 │ switch lst {
118-
40 │  | list{1,2} => ()
125+
40 │ | list{1, 2} => ()
119126
41 │ }
120127
42 │
121128
43 │ switch lst {
122129

123-
You forgot to handle a possible case here, though we don't have more information on the value.
130+
You forgot to handle a possible case here, for example:
131+
list{1, 2, _, ..._} | list{1, 0, ..._} | list{1} | list{0, ..._} | list{}
124132

125133

126134
Warning number 8
@@ -129,9 +137,54 @@ Either bind these labels explicitly or add ', _' to the pattern.
129137
41 │ }
130138
42 │
131139
43 │ switch lst {
132-
44 │  | list{1} => ()
140+
44 │ | list{1} => ()
133141
45 │ }
134142
46 │
135-
47 │
143+
47 │ switch "abc" {
136144

137-
You forgot to handle a possible case here, though we don't have more information on the value.
145+
You forgot to handle a possible case here, for example:
146+
list{1, _, ..._} | list{0, ..._} | list{}
147+
148+
149+
Warning number 8
150+
/.../fixtures/warnings5.res:47:1-49:1
151+
152+
45 │ }
153+
46 │
154+
47 │ switch "abc" {
155+
48 │ | "" => ()
156+
49 │ }
157+
50 │
158+
51 │ switch 0 {
159+
160+
You forgot to handle a possible case here, for example:
161+
"*"
162+
163+
164+
Warning number 8
165+
/.../fixtures/warnings5.res:51:1-53:1
166+
167+
49 │ }
168+
50 │
169+
51 │ switch 0 {
170+
52 │ | 1 => ()
171+
53 │ }
172+
54 │
173+
55 │ let tuple = (1, true)
174+
175+
You forgot to handle a possible case here, for example:
176+
0
177+
178+
179+
Warning number 8
180+
/.../fixtures/warnings5.res:57:1-59:1
181+
182+
55 │ let tuple = (1, true)
183+
56 │
184+
57 │ switch tuple {
185+
58 │ | (_, false) => ()
186+
59 │ }
187+
60 │
188+
189+
You forgot to handle a possible case here, for example:
190+
(_, true)

0 commit comments

Comments
 (0)