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
duplicate string identifiers duplicate keys in object
Playground link with relevant code
const bar = "bar"; const a = { ["foo"]: 1, ["foo"]: 2, // Error [bar]: 3, [bar]: 4, // Not Error };
The second instance of bar is allowed.
bar
The second instance of bar as an input should not be allowed.
When you introduce bar as a key in any other form it causes the error I would expect with just the variables.
Playground link to this scenario
const bar = "bar"; const a = { ["foo"]: 1, ["foo"]: 2, // Error [bar]: 3, [bar]: 4, // Error bar: 5, // Error };
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report
🔎 Search Terms
duplicate string identifiers
duplicate keys in object
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
The second instance of
bar
is allowed.🙂 Expected behavior
The second instance of
bar
as an input should not be allowed.Additional
When you introduce
bar
as a key in any other form it causes the error I would expect with just the variables.Playground link to this scenario
The text was updated successfully, but these errors were encountered: