Skip to content

Fatal error when @deriving(accessors) a Variant with struct payload #6704

Closed
@thanglongnamnay

Description

@thanglongnamnay

I get this error when @deriving(accessors) a Variant with struct payload:

Fatal error: exception File "jscomp/frontend/ast_derive_projector.ml", line 57, characters 42-48: Assertion failed

Playground link
I don't think the compiler should crash in this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions