We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This example get's parsed with errors for me:
type schoolPerson = | Teacher | Director | Student(string); let greeting = person => switch (person) { | Teacher => "Hey Professor!" | Director => "Hello Director." | Student("Richard") => "Still here Ricky?" | Student(anyOtherName) => "Hey, " ++ anyOtherName ++ "." }; print_endline(greeting(Teacher)); print_endline(greeting(Director)); print_endline(greeting(Student("Richard")));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This example get's parsed with errors for me:
The text was updated successfully, but these errors were encountered: