Skip to content

Conversation

spotandjake
Copy link
Member

I noticed that the pattern:

match ([> 'a']) {
   [> 'l', 'e'] => void,
 }

Caused an impossible error because we were not adding the ' around chars when generating the constant cases.

Note: The formatting tests on this pr are going to fail as I wrote this off my ocaml 0.5 branch because of the clang 17 issues.

@spotandjake spotandjake self-assigned this Sep 10, 2025
@spotandjake spotandjake changed the title feat(compiler): Correct impossible bug on nested char pattern fix(compiler): Correct impossible bug on nested char pattern Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant