Skip to content

Inline Records show ...printing not supported... #451

@albertoforni

Description

@albertoforni

Hi and thanks so much for your work!!!

When using inline records on a variant type I see "printing not supported"

image

type variant =
  | First(string, int)
  | Second({str: string});

let parse = variant =>
  switch (variant) {
  | First(str, int) => print_endline("first")
  | Second({str}) => print_endline("second")
  };

Do you think it can be worked out, or there is some sort of limitation that makes it not possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions