Skip to content

@unboxed fails if a constructor has more than one argument #6272

Closed
@glennsl

Description

@glennsl
@unboxed
type t = Tuple(int, string)

fails with the error:

  This type cannot be unboxed because
  its constructor has more than one argument.

which is wrong, because it does produce the expected output if I add just a few more parens, making it an explicit tuple which should be equivalent.

@unboxed
type t = Tuple((int, string))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions