Skip to content

Commit c39d9f8

Browse files
committed
Update spread.res.txt
1 parent e204d7c commit c39d9f8

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

res_syntax/tests/parsing/errors/other/expected/spread.res.txt

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,38 +63,28 @@ Explanation: a list spread at the tail is efficient, but a spread in the middle
6363

6464

6565
Syntax error!
66-
tests/parsing/errors/other/spread.res:9:11-13
66+
tests/parsing/errors/other/spread.res:9:16-10:4
6767

6868
7 │ let list{...x, ...y} = myList
6969
8 │
7070
9 │ type t = {...a}
7171
10 │ type t = Foo({...a})
7272
11 │ type t = option<foo, {...x}>
73-
74-
You're using a ... spread without extra fields. This is the same type.
75-
76-
77-
Syntax error!
78-
tests/parsing/errors/other/spread.res:10:15-17
79-
80-
8 │
81-
9 │ type t = {...a}
82-
10 │ type t = Foo({...a})
83-
11 │ type t = option<foo, {...x}>
8473
12 │
8574

86-
You're using a ... spread without extra fields. This is the same type.
75+
Did you forget a `}` here?
8776

8877

8978
Syntax error!
90-
tests/parsing/errors/other/spread.res:11:23-26
79+
tests/parsing/errors/other/spread.res:10:20
9180

81+
8 │
9282
9 │ type t = {...a}
9383
10 │ type t = Foo({...a})
9484
11 │ type t = option<foo, {...x}>
9585
12 │
9686

97-
You're using a ... spread without extra fields. This is the same type.
87+
I'm not sure what to parse here when looking at ")".
9888

9989
let arr = [|x;y|]
10090
let [|arr;_|] = [|1;2;3|]

0 commit comments

Comments
 (0)