Skip to content

Optional record fields rendered incorrectly in type errors #5654

Closed
@cknitt

Description

E.g.:

A.res:

type a = {x?: string}

A.resi:

type a = {y?: string}

=>

    Type declarations do not match:
         type rec a = {?x: string}
       is not included in
         type rec a = {?y: string}

It should be x?: string, not ?x: string.

And isn't rec incorrect, too?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions