25
25
26
26
27
27
Syntax error!
28
- tests/parsing/infiniteLoops/nonRecTypes.res:67 :26-68 :3
28
+ tests/parsing/infiniteLoops/nonRecTypes.res:61 :26-62 :3
29
29
30
- 65 │ };
31
- 66 │ let has = (rbt, value) => _findNode(rbt, rootGet(rbt), value) !== None;
32
- 67 │ let rec minNode = node =>
33
- 68 │ let findMin = rbt =>
34
- 69 │ let removeNode = (rbt, node) => {
35
- 70 │ let nodeToRemove =
30
+ 59 │ };
31
+ 60 │ let has = (rbt, value) => _findNode(rbt, rootGet(rbt), value) !== None;
32
+ 61 │ let rec minNode = node =>
33
+ 62 │ let findMin = rbt =>
34
+ 63 │ let removeNode = (rbt, node) => {
35
+ 64 │ let nodeToRemove =
36
36
37
37
I'm not sure what to parse here when looking at "let".
38
38
39
39
40
40
Syntax error!
41
- tests/parsing/infiniteLoops/nonRecTypes.res:68 :21-69 :3
41
+ tests/parsing/infiniteLoops/nonRecTypes.res:62 :21-63 :3
42
42
43
- 66 │ let has = (rbt, value) => _findNode(rbt, rootGet(rbt), value) !== None;
44
- 67 │ let rec minNode = node =>
45
- 68 │ let findMin = rbt =>
46
- 69 │ let removeNode = (rbt, node) => {
47
- 70 │ let nodeToRemove =
48
- 71 │ switch (leftGet(node), rightGet(node)) {
43
+ 60 │ let has = (rbt, value) => _findNode(rbt, rootGet(rbt), value) !== None;
44
+ 61 │ let rec minNode = node =>
45
+ 62 │ let findMin = rbt =>
46
+ 63 │ let removeNode = (rbt, node) => {
47
+ 64 │ let nodeToRemove =
48
+ 65 │ switch (leftGet(node), rightGet(node)) {
49
49
50
50
I'm not sure what to parse here when looking at "let".
51
51
52
52
53
53
Syntax error!
54
- tests/parsing/infiniteLoops/nonRecTypes.res:434 :31-38
54
+ tests/parsing/infiniteLoops/nonRecTypes.res:428 :31-38
55
55
56
- 432 │ updateSum(Some(node), ~delta);
57
- 433 │ };
58
- 434 │ type nonrec oldNewVisibleNodes('value) = {
59
- 435 │ mutable old: array('value),
60
- 436 │ mutable new_: array('value),
56
+ 426 │ updateSum(Some(node), ~delta);
57
+ 427 │ };
58
+ 428 │ type nonrec oldNewVisibleNodes('value) = {
59
+ 429 │ mutable old: array('value),
60
+ 430 │ mutable new_: array('value),
61
61
62
62
Type parameters require angle brackets:
63
63
oldNewVisibleNodes<'value>
@@ -93,10 +93,8 @@ include
93
93
;;{js|BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x15\0\0\0\t\0\0\0\x1a\0\0\0\x19\xb0\xa0\xa0A\x91@\xa0\xa0A\x04\x03@E\x97\xa0$size@|js}
94
94
;;[|(({js|use sizeGet instead or use {abstract = light} explicitly|js})
95
95
[@ocaml.deprecated ])|]
96
- ;;[|((1)[@internal.arity ])|]
97
96
external size : ('value t -> int, [ `Has_arity1 ]) function$ = ""
98
97
;;{js|BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x10\0\0\0\x07\0\0\0\x14\0\0\0\x13\xb0\xa0\xa0A\x91@@A\x98\xa0$size@|js}
99
- ;;[|((1)[@internal.arity ])|]
100
98
external sizeGet : ('value t -> int, [ `Has_arity1 ]) function$ = ""
101
99
;;{js|BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x10\0\0\0\x07\0\0\0\x14\0\0\0\x13\xb0\xa0\xa0A\x91@@A\x98\xa0$size@|js}
102
100
external rootSet :
@@ -105,24 +103,20 @@ include
105
103
;;{js|BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x15\0\0\0\t\0\0\0\x1a\0\0\0\x19\xb0\xa0\xa0A\x91@\xa0\xa0A\x04\x03@E\x97\xa0$root@|js}
106
104
;;[|(({js|use rootGet instead or use {abstract = light} explicitly|js})
107
105
[@ocaml.deprecated ])|]
108
- ;;[|((1)[@internal.arity ])|]
109
106
external root :
110
107
('value t -> 'value node option, [ `Has_arity1 ]) function$ = ""
111
108
;;{js|BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x10\0\0\0\x07\0\0\0\x14\0\0\0\x13\xb0\xa0\xa0A\x91@@A\x98\xa0$root@|js}
112
- ;;[|((1)[@internal.arity ])|]
113
109
external rootGet :
114
110
('value t -> 'value node option, [ `Has_arity1 ]) function$ = ""
115
111
;;{js|BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x10\0\0\0\x07\0\0\0\x14\0\0\0\x13\xb0\xa0\xa0A\x91@@A\x98\xa0$root@|js}
116
112
;;[|(({js|use compareGet instead or use {abstract = light} explicitly|js})
117
113
[@ocaml.deprecated ])|]
118
- ;;[|((1)[@internal.arity ])|]
119
114
external compare :
120
115
('value t -> [ [%rescript.typehole ]] Js.Internal.fn,
121
116
[ `Has_arity1 ]) function$
122
117
;;(({js|Arity_2('value, 'value)], int) =
123
118
""
124
119
"BS:6.0.1\x84\x95\xa6\xbe\0\0\0\x13\0\0\0\x07\0\0\0\x14\0\0\0\x13\xb0\xa0\xa0A\x91@@A\x98\xa0'compare@";
125
- [@internal.arity 1]
126
120
external compareGet:
127
121
t('value) => Js.Internal.fn([ | |js})
128
122
[@res.template ])
0 commit comments