Closed
Description
I've noticed you can define a variant with an inline record that optional fields, but you can't instantiate it.
// this compiles
type foo = Foo({name: string, age?: int})
// Error: Some record fields are undefined: age
let foo = Foo({name: "foo"})
We should either forbid the creation of such a type or allow to instantiate it.