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

Computed property type is invalid in type emitted if it is a unique symbol coming from a property that has a space in the name #60823

Open
dragomirtitian opened this issue Dec 19, 2024 · 0 comments

Comments

@dragomirtitian
Copy link
Contributor

πŸ”Ž Search Terms

computed property unique symbols declaration emit

πŸ•— Version & Regression Information

  • This changed between versions 3.7 and 3.8

⏯ Playground Link

Playground Link

πŸ’» Code

class T {
    static readonly ['A a']: unique symbol;
}
let x = {
    foo:T['A a']
} as const;

πŸ™ Actual behavior

The type of x is emitted as { readonly foo: typeof T.A a; } which is invlaid.

πŸ™‚ Expected behavior

Declaration emit should be valid

Additional information about the issue

No response

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

No branches or pull requests

1 participant