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
The following program is (correctly) rejected because the pattern is non-exhaustive:
let val { a = SOME f } = { a = SOME (fn x => x) } in f 1; f "x" end;
But, a slight modification circumvents the exhaustiveness checker and allows the program to compile without a warning:
let val { ... = { a = SOME f } } = { a = SOME (fn x => x) } in f 1; f "x" end;
The exhaustiveness checker should correctly handle ... pattern.
...
The text was updated successfully, but these errors were encountered:
Indeed, it seems like I never extended the exhaustiveness check to extensible records. Fixed now, thanks for reporting!
Sorry, something went wrong.
No branches or pull requests
The following program is (correctly) rejected because the pattern is non-exhaustive:
But, a slight modification circumvents the exhaustiveness checker and allows the program to compile without a warning:
The exhaustiveness checker should correctly handle
...
pattern.The text was updated successfully, but these errors were encountered: