Skip to content

Commit 85c4e40

Browse files
cometkimfhammerschmidt
authored andcommitted
Add missing syntax error snapshot file
1 parent 6354d65 commit 85c4e40

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
Syntax error!
3+
syntax_tests/data/parsing/errors/typeDef/nestedRecord.res:3:11-47
4+
5+
1 │ type options = {
6+
2 │ extra?: {
7+
3 │ name: result<{first: bool}, {second: bool}>,
8+
4 │ },
9+
5 │ }
10+
11+
Only one inline record definition is allowed per record field. This defines more than one inline record.
12+
13+
type options.extra = {
14+
name: (options.extra.name, options.extra.name) result }[@@res.inlineRecordDefinition
15+
]
16+
and options.extra.name = {
17+
second: bool }[@@res.inlineRecordDefinition ]
18+
and options.extra.name = {
19+
first: bool }[@@res.inlineRecordDefinition ]
20+
and options = {
21+
extra?: options.extra }

0 commit comments

Comments
 (0)