We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6354d65 commit 85c4e40Copy full SHA for 85c4e40
tests/syntax_tests/data/parsing/errors/typeDef/expected/nestedRecord.res.txt
@@ -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
19
+ first: bool }[@@res.inlineRecordDefinition ]
20
+and options = {
21
+ extra?: options.extra }
0 commit comments