1+
2+ [1;33mWarning number 9[0m
3+ [36m/.../fixtures/warnings5.res[0m:[2m12:3-21[0m
4+
5+ 10 [2m│[0m
6+ 11 [2m│[0m switch y {
7+ [1;33m12[0m [2m│[0m | [1;33m{otherValue: false}[0m => Js.log("first")
8+ 13 [2m│[0m }
9+ 14 [2m│[0m
10+
11+ the following labels are not bound in this record pattern: someValue, typ
12+ Either bind these labels explicitly or add '; _' to the pattern.
13+
14+
15+ [1;33mWarning number 8[0m
16+ [36m/.../fixtures/warnings5.res[0m:[2m11:1-13:1[0m
17+
18+ 9 [2m│[0m @val external y: someRecord = "otherVariable"
19+ 10 [2m│[0m
20+ [1;33m11[0m [2m│[0m [1;33mswitch y {[0m
21+ [1;33m12[0m [2m│[0m [1;33m| {otherValue: false} => Js.log("first")[0m
22+ [1;33m13[0m [2m│[0m [1;33m}[0m
23+ 14 [2m│[0m
24+ 15 [2m│[0m switch y {
25+
26+ You forgot to handle a possible case here, for example:
27+ {otherValue: true}
28+
29+
30+ [1;33mWarning number 9[0m
31+ [36m/.../fixtures/warnings5.res[0m:[2m16:3-26[0m
32+
33+ 14 [2m│[0m
34+ 15 [2m│[0m switch y {
35+ [1;33m16[0m [2m│[0m | [1;33m{typ: WithPayload(true)}[0m => Js.log("first")
36+ 17 [2m│[0m }
37+ 18 [2m│[0m
38+
39+ the following labels are not bound in this record pattern: someValue, otherValue
40+ Either bind these labels explicitly or add '; _' to the pattern.
41+
42+
43+ [1;33mWarning number 8[0m
44+ [36m/.../fixtures/warnings5.res[0m:[2m15:1-17:1[0m
45+
46+ 13 [2m│[0m }
47+ 14 [2m│[0m
48+ [1;33m15[0m [2m│[0m [1;33mswitch y {[0m
49+ [1;33m16[0m [2m│[0m [1;33m| {typ: WithPayload(true)} => Js.log("first")[0m
50+ [1;33m17[0m [2m│[0m [1;33m}[0m
51+ 18 [2m│[0m
52+ 19 [2m│[0m let arr = [1]
53+
54+ You forgot to handle a possible case here, for example:
55+ ({typ: WithPayload(false)}|{typ: Variant})
56+
57+
58+ [1;33mWarning number 8[0m
59+ [36m/.../fixtures/warnings5.res[0m:[2m21:1-23:1[0m
60+
61+ 19 [2m│[0m let arr = [1]
62+ 20 [2m│[0m
63+ [1;33m21[0m [2m│[0m [1;33mswitch arr {[0m
64+ [1;33m22[0m [2m│[0m [1;33m| [] => Js.log("")[0m
65+ [1;33m23[0m [2m│[0m [1;33m}[0m
66+ 24 [2m│[0m
67+ 25 [2m│[0m switch arr {
68+
69+ You forgot to handle a possible case here, for example:
70+ [_]
71+
72+
73+ [1;33mWarning number 8[0m
74+ [36m/.../fixtures/warnings5.res[0m:[2m25:1-27:1[0m
75+
76+ 23 [2m│[0m }
77+ 24 [2m│[0m
78+ [1;33m25[0m [2m│[0m [1;33mswitch arr {[0m
79+ [1;33m26[0m [2m│[0m [1;33m| [one] => Js.log(one)[0m
80+ [1;33m27[0m [2m│[0m [1;33m}[0m
81+ 28 [2m│[0m
82+
83+ You forgot to handle a possible case here, for example:
84+ []
0 commit comments