Skip to content

Accept late-bound computed property baseline diffs#3779

Open
Copilot wants to merge 2 commits intomainfrom
copilot/fix-late-bound-computed-property
Open

Accept late-bound computed property baseline diffs#3779
Copilot wants to merge 2 commits intomainfrom
copilot/fix-late-bound-computed-property

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Baseline Acceptance

Accepts baseline diffs for lateBoundAssignmentCandidateJS2.js and lateBoundMethodNameAssigmentJS.js as won't-fix.

tsgo emits [prop] instead of prop in declaration output because it traverses input nodes (which use bracket syntax) rather than synthesizing types from symbol information. Both emits are semantically equivalent.

  • Moved diff files from submoduleTriaged/submoduleAccepted/
  • Updated submoduleAccepted.txt and submoduleTriaged.txt accordingly

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix late-bound computed property preservation issue Accept late-bound computed property baseline diffs May 8, 2026
Copilot AI requested a review from RyanCavanaugh May 8, 2026 21:22
@RyanCavanaugh RyanCavanaugh marked this pull request as ready for review May 8, 2026 23:12
Copilot AI review requested due to automatic review settings May 8, 2026 23:12
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

Accepts two submodule baseline diffs as “won’t-fix” by moving them from the triaged set to the accepted set, reflecting known (non-semantic) declaration emit differences in tsgo vs TypeScript.

Changes:

  • Removed the two late-bound computed property diffs from testdata/submoduleTriaged.txt.
  • Added the same diffs to testdata/submoduleAccepted.txt.
  • Added accepted baseline .diff files under testdata/baselines/reference/submoduleAccepted/compiler/.
Show a summary per file
File Description
testdata/submoduleTriaged.txt Removes the two entries from the triaged list (but leaves an empty header block).
testdata/submoduleAccepted.txt Adds the two entries to the accepted list (currently without a dedicated rationale block for #3566).
testdata/baselines/reference/submoduleAccepted/compiler/lateBoundMethodNameAssigmentJS.js.diff New accepted baseline diff for late-bound method name case.
testdata/baselines/reference/submoduleAccepted/compiler/lateBoundAssignmentCandidateJS2.js.diff New accepted baseline diff for late-bound assignment candidate case.

Copilot's findings

  • Files reviewed: 2/4 changed files
  • Comments generated: 2

Comment on lines 188 to 190
# Late-bound computed property [prop] preserved instead of resolved to plain prop
## https://github.com/microsoft/typescript-go/issues/3566
compiler/lateBoundAssignmentCandidateJS2.js.diff
compiler/lateBoundMethodNameAssigmentJS.js.diff

@@ -1388,3 +1388,5 @@ conformance/nodeModulesDeclarationEmitWithPackageExports(module=nodenext).errors
## JSDoc module namepath module:A emits as unresolved module instead of any
## https://github.com/microsoft/typescript-go/issues/3562
conformance/jsDeclarationsModuleReferenceHasEmit(target=es2015).js.diff
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.

Baselines: Late-bound computed property [prop] preserved instead of resolved to plain prop

4 participants