Skip to content

Commit 8a2e1dd

Browse files
Simpler test
1 parent 4103f47 commit 8a2e1dd

6 files changed

Lines changed: 17 additions & 79 deletions

File tree

tests/build_tests/parmatch_empty_record_pattern/input.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/build_tests/parmatch_empty_record_pattern/rescript.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/build_tests/parmatch_empty_record_pattern/src/repro.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

tests/build_tests/parmatch_empty_record_pattern/src/repro.res

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Generated by ReScript, PLEASE EDIT WITH CARE
2+
3+
4+
let match = {};
5+
6+
let emptyDictPatternShouldCompile;
7+
8+
emptyDictPatternShouldCompile = typeof match === "object" && match !== null && !Array.isArray(match);
9+
10+
export {
11+
emptyDictPatternShouldCompile,
12+
}
13+
/* emptyDictPatternShouldCompile Not a pure module */
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
let emptyDictPatternShouldCompile = switch JSON.Object(dict{}) {
2+
| JSON.Object(dict{}) => true
3+
| _ => false
4+
}

0 commit comments

Comments
 (0)