Skip to content

Commit d84d878

Browse files
amiraliescristianoc
authored andcommitted
Add more list pattern errors
1 parent 9b2f489 commit d84d878

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

jscomp/build_tests/super_errors/fixtures/warnings5.res

+16
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,19 @@ switch arr {
2929
switch arr {
3030
| [1, 2] => ()
3131
}
32+
33+
let lst = list{}
34+
35+
switch lst {
36+
| list{} => ()
37+
}
38+
39+
switch lst {
40+
| list{1,2} => ()
41+
}
42+
43+
switch lst {
44+
| list{1} => ()
45+
}
46+
47+

0 commit comments

Comments
 (0)