Skip to content

Conversation

@a-tarasyuk
Copy link
Contributor

Fixes #48948

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label May 4, 2022
Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good. We should probably issue these errors in plain JS files. @sandersn will the current logic do that? Will we need a test?

@sandersn
Copy link
Member

  1. The new errors need to be added to the plainJSErrors list in program.ts.
  2. I think the tests are in $tests/cases/conformance/salsa/plainJSErrors.ts although I'm not certain.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Please add the new errors to plainJSErrors in program.ts and a short test to plainJSGrammarErrors.ts in tests/conformance/salsa

@DanielRosenwasser DanielRosenwasser merged commit 0414dee into microsoft:main May 13, 2022
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

constructor can't be the name of class accessors and generators.

4 participants