Skip to content

Restore #3529#3640

Merged
gabritto merged 3 commits into
mainfrom
gabritto/restore
Apr 28, 2026
Merged

Restore #3529#3640
gabritto merged 3 commits into
mainfrom
gabritto/restore

Conversation

@gabritto
Copy link
Copy Markdown
Member

Restore #3529 after it got reverted in merge queue bug.

Copilot AI review requested due to automatic review settings April 28, 2026 15:28
jakebailey
jakebailey previously approved these changes Apr 28, 2026
Comment thread testdata/submoduleTriaged.txt Outdated
@gabritto gabritto enabled auto-merge April 28, 2026 15:30
Copy link
Copy Markdown
Contributor

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

Restores the previously-merged fix from #3529/#3509 so that maybeMappedType again triggers the mapped-type suggestion diagnostic (TS2690) in the appropriate computed-property/type-literal scenario, and updates baselines/triage data accordingly.

Changes:

  • Fix Checker.maybeMappedType AST-walk and assignability check to re-enable mapped-type suggestions.
  • Update reference baseline output for typeUsedAsTypeLiteralIndex to reflect TS2690 + suggestion text.
  • Adjust triaged submodule baseline tracking entries (including removal of the now-unneeded triaged diff file).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
internal/checker/checker.go Restores maybeMappedType behavior for emitting the mapped-type “Did you mean to use … in …” suggestion.
testdata/baselines/reference/submodule/compiler/typeUsedAsTypeLiteralIndex.errors.txt Updates reference baseline to TS2690 + suggestion text.
testdata/baselines/reference/submoduleTriaged/compiler/typeUsedAsTypeLiteralIndex.errors.txt.diff Removes the now-unnecessary triaged diff (behavior matches reference again).
testdata/submoduleTriaged.txt Updates the triaged list to drop the old entry and add a new one (currently inconsistent).

Comment thread testdata/submoduleTriaged.txt
@gabritto gabritto added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 14a12d0 Apr 28, 2026
21 checks passed
@gabritto gabritto deleted the gabritto/restore branch April 28, 2026 16:02
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

Successfully merging this pull request may close these issues.

4 participants