Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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