Skip to content

Commit 9685119

Browse files
committed
update
1 parent 92ea1bd commit 9685119

20 files changed

+268
-149
lines changed

jscomp/test/ari_regress_test.js

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/ari_regress_test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let g1 = (x, y) => {
1515
}
1616
let x = gg(3, 5)(6)
1717

18-
let v = g1(3)(4, 6)
18+
let v = yy => g1(3, 4)(6, yy)
1919

2020
let suites = {
2121
open Mt

jscomp/test/bs_min_max_test.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/bs_min_max_test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ let suites: ref<Mt.pair_suites> = ref(list{})
22
let test_id = ref(0)
33

44
let eq = (loc, x, y) => Mt.eq_suites(~test_id, ~suites, loc, x, y)
5-
let b = Mt.bool_suites(~test_id, ~suites)
5+
let b = (loc, x) => Mt.bool_suites(~test_id, ~suites, loc, x)
66

77
let f = (x, y) => Pervasives.compare(x + y, y + x)
88

jscomp/test/ocaml_re_test.res

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -769,18 +769,19 @@ module Re_automata: {
769769

770770
let reset_table = a => Array.fill(a, 0, Array.length(a), false)
771771

772-
let rec mark_used_indices = tbl =>
772+
let rec mark_used_indices = (tbl, list) =>
773773
List.iter(x =>
774774
switch x {
775-
| E.TSeq(l, _, _) => mark_used_indices(tbl, l)
775+
| E.TSeq(l, _, _) => mark_used_indices(tbl, list)
776776
| E.TExp(marks, _)
777777
| E.TMatch(marks) =>
778778
List.iter(((_, i)) =>
779779
if i >= 0 {
780780
tbl[i] = true
781781
}
782782
, marks.Marks.marks)
783-
}
783+
},
784+
list
784785
)
785786

786787
let rec find_free = (tbl, idx, len) =>
@@ -804,11 +805,12 @@ module Re_automata: {
804805

805806
/* *** Computation of the next state *** */
806807

807-
let remove_matches = List.filter(x =>
808+
let remove_matches = l => List.filter(x =>
808809
switch x {
809810
| E.TMatch(_) => false
810811
| _ => true
811-
}
812+
},
813+
l
812814
)
813815

814816
let rec split_at_match_rec = (l', x) =>
@@ -985,7 +987,7 @@ module Re_automata: {
985987

986988
/* ** */
987989

988-
let prepend_deriv = List.fold_right(((s, x), l) => Cset.prepend(s, x, l))
990+
let prepend_deriv = (x, y) => List.fold_right(((s, x), l) => Cset.prepend(s, x, l), x, y)
989991

990992
let rec restrict = (s, x) =>
991993
switch x {

jscomp/test/pr_regression_test.res

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ let a = {
22
let v = ref(3)
33
let action = () => incr(v)
44
let f = h =>
5-
((x, y) => h(x, y))({
5+
z => ((x, y) => h(x, y))({
66
action()
77
3
8-
})
8+
})(z)
99
\"@@"(ignore, f(\"+"))
1010
\"@@"(ignore, f(\"+"))
1111
v.contents
@@ -15,10 +15,10 @@ let b = {
1515
let v = ref(3)
1616
let action = () => incr(v)
1717
let f = h =>
18-
((x, y) => h(x, y))({
18+
z => ((x, y) => h(x, y))({
1919
action()
2020
3
21-
})
21+
})(z)
2222
\"@@"(ignore, f(\"+"))
2323
\"@@"(ignore, f(\"+"))
2424
v.contents
@@ -28,13 +28,13 @@ let c = {
2828
let v = ref(3)
2929
let action = () => incr(v)
3030
let f = h =>
31-
((x, y) => h(x, y))(
31+
z => ((x, y) => h(x, y))(
3232
2,
3333
{
3434
action()
3535
3
3636
},
37-
)
37+
)(z)
3838
\"@@"(ignore, f(\"+"))
3939
\"@@"(ignore, f(\"+"))
4040
v.contents
@@ -44,11 +44,11 @@ let d = {
4444
let v = ref(3)
4545
let action = () => incr(v)
4646
let f = (h, g) =>
47-
((x, y) => h(x, y))({
47+
z => ((x, y) => h(x, y))({
4848
let v = 3
4949
action()
5050
v * v
51-
})
51+
})(z)
5252
\"@@"(ignore, f(\"+", 3))
5353
\"@@"(ignore, f(\"+", 3))
5454
v.contents

jscomp/test/rec_fun_test.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)