Sample code:
let x () : {| A: int; B: string |} =
{| A = 123 |}
The error message on the second line: Two anonymous record types have mismatched sets of field names '["A"; "B"]' and '["A"]'.
Having info present in error message we should be able to generate stub for missing fields just like in case of normal records