Skip to content

@unboxed breaks with just one constructor #6519

Closed
@zth

Description

@zth
@unboxed type x = One

let x = One

This breaks with:

Fatal error: exception File "jscomp/ml/translcore.ml", line 836, characters 60-66: Assertion failed

Add another constructor to x and it compiles.

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