Skip to content

Commit b074401

Browse files
amiraliescristianoc
authored andcommitted
Add more tests
1 parent 1031c5f commit b074401

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

jscomp/build_tests/super_errors/fixtures/warnings5.res

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,27 @@ switch arr {
3333
let lst = list{}
3434

3535
switch lst {
36-
| list{} => ()
36+
| list{} => ()
3737
}
3838

3939
switch lst {
40-
| list{1,2} => ()
40+
| list{1, 2} => ()
4141
}
4242

4343
switch lst {
44-
| list{1} => ()
44+
| list{1} => ()
4545
}
4646

47+
switch "abc" {
48+
| "" => ()
49+
}
50+
51+
switch 0 {
52+
| 1 => ()
53+
}
4754

55+
let tuple = (1, true)
56+
57+
switch tuple {
58+
| (_, false) => ()
59+
}

0 commit comments

Comments
 (0)