Skip to content

Revert change to type print in an error message #61977

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

Andarist
Copy link
Contributor

reverts part #60631 that wasn't needed for that fix

@Copilot Copilot AI review requested due to automatic review settings June 30, 2025 21:15
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jun 30, 2025
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jun 30, 2025
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

1 similar comment
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts a change introduced in PR #60631 that modified the error message regarding property overrides. The update restores the expected error messages across test baselines and adjusts the diagnostic formatting in the compiler checker.

  • Reverts error messages in propertyOverridesAccessors6.errors.txt to reference class 'B'
  • Reverts error messages in accessorsOverrideProperty10.errors.txt to reference class 'B'
  • Reverts the type printing parameter in src/compiler/checker.ts to use baseType

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/baselines/reference/propertyOverridesAccessors6.errors.txt Updated error message now references class 'B'
tests/baselines/reference/accessorsOverrideProperty10.errors.txt Updated error message now references class 'B'
src/compiler/checker.ts Reverted type printing change by replacing getDeclaredTypeOfSymbol(base.parent!) with baseType
Comments suppressed due to low confidence (3)

tests/baselines/reference/propertyOverridesAccessors6.errors.txt:1

  • Ensure that the error message correctly refers to class 'B' for the accessor override, matching the intended design of the diagnostic.
propertyOverridesAccessors6.ts(8,3): error TS2610: 'x' is defined as an accessor in class 'B', but is overridden here in 'C' as an instance property.

tests/baselines/reference/accessorsOverrideProperty10.errors.txt:1

  • Align the error message in this baseline with the reversion by referencing class 'B' consistently for the accessor override.
accessorsOverrideProperty10.ts(6,7): error TS2611: 'x' is defined as a property in class 'B', but is overridden here in 'C' as an accessor.

@github-project-automation github-project-automation bot moved this from Not started to Needs merge in PR Backlog Jun 30, 2025
@jakebailey jakebailey merged commit b70d4d7 into microsoft:main Jun 30, 2025
30 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants