"Not sure what to do with this character" error when using a German umlaut in a variant

type mustard = Dijon | Wholegrain | Düsseldorf

does give an error (“Not sure what to do with this character”). I tried escaping the identifier but to no avail (“Did you mean `Düsseldorf` instead of `Düsseldorf`?”).

Is this an intentional limitation or a bug?

identifiers can only use ascii characters, if you want to use any utf8 characters, use @as:

type mustard =
  | Dijon
  | Wholegrained
  | @as("Düsseldorf") Dusseldorf
1 Like

Thank you very much!

1 Like