There was an error while loading. Please reload this page.
1 parent d71fcc2 commit 0047d51Copy full SHA for 0047d51
jscomp/build_tests/super_errors/expected/warnings4.res.expected
@@ -0,0 +1,13 @@
1
+
2
+ [1;33mWarning number 8[0m
3
+ [36m/.../fixtures/warnings4.res[0m:[2m11:1-13:1[0m
4
5
+ 9 [2m│[0m @val external x: myType = "myVariable"
6
+ 10 [2m│[0m
7
+ [1;33m11[0m [2m│[0m [1;33mswitch x {[0m
8
+ [1;33m12[0m [2m│[0m [1;33m | #first => Js.log("first")[0m
9
+ [1;33m13[0m [2m│[0m [1;33m}[0m
10
+ 14 [2m│[0m
11
12
+ You forgot to handle a possible case here, for example:
13
+ (#second|#fourth|#third)
jscomp/build_tests/super_errors/fixtures/warnings4.res
+type myType = [
+ | #first
+ | #second
+ | #third
+ | #fourth
+]
+// just a quick way to make the switch compile
+@val external x: myType = "myVariable"
+switch x {
+ | #first => Js.log("first")
+}
0 commit comments