Skip to content

Commit d401af2

Browse files
committed
update errors
1 parent 4b373fb commit d401af2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/syntax_tests/data/parsing/errors/typeDef/expected/inlineRecord.res.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
7 ┆ score: int
99
8 ┆ }
1010

11-
An inline record type declaration is only allowed in a variant constructor's declaration
11+
An inline record type declaration is only allowed in a variant constructor's declaration or nested inside of a record type declaration
1212

1313

1414
Syntax error!
@@ -20,7 +20,7 @@
2020
│ nder(props)
2121
20 │
2222

23-
An inline record type declaration is only allowed in a variant constructor's declaration
23+
An inline record type declaration is only allowed in a variant constructor's declaration or nested inside of a record type declaration
2424

2525
type nonrec entity =
2626
| Director
@@ -29,11 +29,11 @@ type nonrec entity =
2929
reportCard: < passing: bool ;score: int > }
3030
type user.address = {
3131
street: string ;
32-
country: string }[@@inlineRecordDefinition ]
32+
country: string }[@@res.inlineRecordDefinition ]
3333
and user =
3434
{
3535
name: string ;
36-
address: ((user.address)[@inlineRecordReference ]) }
36+
address: ((user.address)[@res.inlineRecordReference ]) }
3737
let make
3838
[arity:1](props :
3939
< handleClick: Click.t -> unit (a:1) ;value: string > )

tests/syntax_tests/data/parsing/errors/typexpr/expected/objectSpread.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
9 │ let f = (x: {a: int, b: int}) => ()
2020
10 │
2121

22-
An inline record type declaration is only allowed in a variant constructor's declaration
22+
An inline record type declaration is only allowed in a variant constructor's declaration or nested inside of a record type declaration
2323

2424
type nonrec u = {
2525
...: a ;

0 commit comments

Comments
 (0)