@@ -23,7 +23,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
23
23
14 [2m│[0m
24
24
15 [2m│[0m switch y {
25
25
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, _}
27
28
28
29
29
30
[1;33mWarning number 9[0m
@@ -50,7 +51,9 @@ Either bind these labels explicitly or add ', _' to the pattern.
50
51
18 [2m│[0m
51
52
19 [2m│[0m let arr = [1]
52
53
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(_), _}
54
57
55
58
56
59
[1;33mWarning number 8[0m
@@ -64,7 +67,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
64
67
24 [2m│[0m
65
68
25 [2m│[0m switch arr {
66
69
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
+ [_]
68
72
69
73
70
74
[1;33mWarning number 8[0m
@@ -78,7 +82,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
78
82
28 [2m│[0m
79
83
29 [2m│[0m switch arr {
80
84
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
+ []
82
87
83
88
84
89
[1;33mWarning number 8[0m
@@ -92,7 +97,8 @@ Either bind these labels explicitly or add ', _' to the pattern.
92
97
32 [2m│[0m
93
98
33 [2m│[0m let lst = list{}
94
99
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, _] | []
96
102
97
103
98
104
[1;33mWarning number 8[0m
@@ -101,12 +107,13 @@ Either bind these labels explicitly or add ', _' to the pattern.
101
107
33 [2m│[0m let lst = list{}
102
108
34 [2m│[0m
103
109
[1;33m35[0m [2m│[0m [1;33mswitch lst {[0m
104
- [1;33m36[0m [2m│[0m [1;33m | list{} => ()[0m
110
+ [1;33m36[0m [2m│[0m [1;33m| list{} => ()[0m
105
111
[1;33m37[0m [2m│[0m [1;33m}[0m
106
112
38 [2m│[0m
107
113
39 [2m│[0m switch lst {
108
114
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{_, ..._}
110
117
111
118
112
119
[1;33mWarning number 8[0m
@@ -115,12 +122,13 @@ Either bind these labels explicitly or add ', _' to the pattern.
115
122
37 [2m│[0m }
116
123
38 [2m│[0m
117
124
[1;33m39[0m [2m│[0m [1;33mswitch lst {[0m
118
- [1;33m40[0m [2m│[0m [1;33m | list{1,2} => ()[0m
125
+ [1;33m40[0m [2m│[0m [1;33m| list{1, 2} => ()[0m
119
126
[1;33m41[0m [2m│[0m [1;33m}[0m
120
127
42 [2m│[0m
121
128
43 [2m│[0m switch lst {
122
129
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{}
124
132
125
133
126
134
[1;33mWarning number 8[0m
@@ -129,9 +137,54 @@ Either bind these labels explicitly or add ', _' to the pattern.
129
137
41 [2m│[0m }
130
138
42 [2m│[0m
131
139
[1;33m43[0m [2m│[0m [1;33mswitch lst {[0m
132
- [1;33m44[0m [2m│[0m [1;33m | list{1} => ()[0m
140
+ [1;33m44[0m [2m│[0m [1;33m| list{1} => ()[0m
133
141
[1;33m45[0m [2m│[0m [1;33m}[0m
134
142
46 [2m│[0m
135
- 47 [2m│[0m
143
+ 47 [2m│[0m switch "abc" {
136
144
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
+ [1;33mWarning number 8[0m
150
+ [36m/.../fixtures/warnings5.res[0m:[2m47:1-49:1[0m
151
+
152
+ 45 [2m│[0m }
153
+ 46 [2m│[0m
154
+ [1;33m47[0m [2m│[0m [1;33mswitch "abc" {[0m
155
+ [1;33m48[0m [2m│[0m [1;33m| "" => ()[0m
156
+ [1;33m49[0m [2m│[0m [1;33m}[0m
157
+ 50 [2m│[0m
158
+ 51 [2m│[0m switch 0 {
159
+
160
+ You forgot to handle a possible case here, for example:
161
+ "*"
162
+
163
+
164
+ [1;33mWarning number 8[0m
165
+ [36m/.../fixtures/warnings5.res[0m:[2m51:1-53:1[0m
166
+
167
+ 49 [2m│[0m }
168
+ 50 [2m│[0m
169
+ [1;33m51[0m [2m│[0m [1;33mswitch 0 {[0m
170
+ [1;33m52[0m [2m│[0m [1;33m| 1 => ()[0m
171
+ [1;33m53[0m [2m│[0m [1;33m}[0m
172
+ 54 [2m│[0m
173
+ 55 [2m│[0m let tuple = (1, true)
174
+
175
+ You forgot to handle a possible case here, for example:
176
+ 0
177
+
178
+
179
+ [1;33mWarning number 8[0m
180
+ [36m/.../fixtures/warnings5.res[0m:[2m57:1-59:1[0m
181
+
182
+ 55 [2m│[0m let tuple = (1, true)
183
+ 56 [2m│[0m
184
+ [1;33m57[0m [2m│[0m [1;33mswitch tuple {[0m
185
+ [1;33m58[0m [2m│[0m [1;33m| (_, false) => ()[0m
186
+ [1;33m59[0m [2m│[0m [1;33m}[0m
187
+ 60 [2m│[0m
188
+
189
+ You forgot to handle a possible case here, for example:
190
+ (_, true)
0 commit comments