
  Syntax error!
  syntax_tests/data/parsing/errors/typexpr/objectSpread.res:9:14

   7 │ type u = {...a, "u": int, v: int}
   8 │ 
   9 │ let f = (x: {a: int, b: int}) => ()
  10 │ 

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

type nonrec u = {
  ...: a ;
  u: int }
type nonrec u = private {
  ...: a ;
  u: int }
type nonrec x =
  | Type of {
  ...: a ;
  u: int } 
type nonrec u = < a ;u: int  ;v: int   > 
let f [arity:1](x : < a: int  ;b: int   > ) = ()