Skip to content
New issue

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

Unexpected compiler error occurs on PascalCase type names #6539

Closed
cometkim opened this issue Dec 27, 2023 · 3 comments · Fixed by #6777
Closed

Unexpected compiler error occurs on PascalCase type names #6539

cometkim opened this issue Dec 27, 2023 · 3 comments · Fixed by #6777

Comments

@cometkim
Copy link
Contributor

with v11.0.0-rc.8

type \"A" = {foo: int}

let fn = ({foo}) => {
  foo
}
File "jscomp/ml/env.ml", line 909, characters 26-32: Assertion failed

playground link

@zth
Copy link
Collaborator

zth commented Dec 27, 2023

Is this a new issue?

@cometkim
Copy link
Contributor Author

No. It also happens in v9.x.

Maybe it was there from the beginning of the new syntax

@zth
Copy link
Collaborator

zth commented Dec 27, 2023

Definitely sounds like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants