Skip to content

Commit f67174d

Browse files
committed
add extra test for top level empty record match
1 parent 5a5dd58 commit f67174d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

jscomp/test/inline_record_test.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/inline_record_test.res

+8
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,11 @@ let () = switch b {
126126
| A => Js.log("A!")
127127
| B({}) => Js.log("B")
128128
}
129+
130+
type r = {y: int}
131+
let r = {y: 10}
132+
133+
switch r {
134+
| {y: 10} => Js.log("10!")
135+
| {} => Js.log("Catch all?")
136+
}

0 commit comments

Comments
 (0)