File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
tests/syntax_tests/data/parsing/errors Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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!
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
2525type nonrec entity =
2626 | Director
@@ -29,11 +29,11 @@ type nonrec entity =
2929 reportCard: < passing: bool ;score: int > }
3030type user.address = {
3131 street: string ;
32- country: string }[@@inlineRecordDefinition ]
32+ country: string }[@@res. inlineRecordDefinition ]
3333and user =
3434 {
3535 name: string ;
36- address: ((user.address)[@inlineRecordReference ]) }
36+ address: ((user.address)[@res. inlineRecordReference ]) }
3737let make
3838 [arity:1](props :
3939 < handleClick: Click.t -> unit (a:1) ;value: string > )
Original file line number Diff line number Diff line change 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
2424type nonrec u = {
2525 ...: a ;
You can’t perform that action at this time.
0 commit comments