Skip to content

Accept symbolDeclarationEmit12.js baseline change#3778

Open
Copilot wants to merge 2 commits intomainfrom
copilot/update-symbol-getter-setter-declaration
Open

Accept symbolDeclarationEmit12.js baseline change#3778
Copilot wants to merge 2 commits intomainfrom
copilot/update-symbol-getter-setter-declaration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Corsa's declaration emit for symbolDeclarationEmit12 is more correct than strada's. Strada had a bug where it confused getter and method return types for [Symbol.toPrimitive] and incorrectly elided the method overload via isImplementationOfOverload. Since the input has duplicate declarations, the output should too.

  • Moved conformance/symbolDeclarationEmit12.js.diff from submoduleTriagedsubmoduleAccepted

…leAccepted

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copilot AI changed the title [WIP] Update baselines for symbol getter/setter declaration emit Accept symbolDeclarationEmit12.js baseline change May 8, 2026
Copilot AI requested a review from RyanCavanaugh May 8, 2026 21:10
@RyanCavanaugh RyanCavanaugh marked this pull request as ready for review May 8, 2026 23:13
Copilot AI review requested due to automatic review settings May 8, 2026 23:13
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

Moves the symbolDeclarationEmit12.js declaration-emit baseline from “triaged” to “accepted”, reflecting that Corsa’s output for this case is now considered the correct/intentional divergence from the submodule baseline.

Changes:

  • Remove conformance/symbolDeclarationEmit12.js.diff from testdata/submoduleTriaged.txt.
  • Add conformance/symbolDeclarationEmit12.js.diff to testdata/submoduleAccepted.txt.
  • Add the corresponding accepted reference baseline diff under testdata/baselines/reference/submoduleAccepted/....
Show a summary per file
File Description
testdata/submoduleTriaged.txt Removes the triaged entry for symbolDeclarationEmit12.js.diff (leaves an empty section header).
testdata/submoduleAccepted.txt Adds symbolDeclarationEmit12.js.diff to the accepted list.
testdata/baselines/reference/submoduleAccepted/conformance/symbolDeclarationEmit12.js.diff Adds the accepted reference diff showing the intended declaration emit change.

Copilot's findings

  • Files reviewed: 2/3 changed files
  • Comments generated: 1

Comment on lines 193 to 195
# Symbol getter/setter declaration emit change
## https://github.com/microsoft/typescript-go/issues/3567
conformance/symbolDeclarationEmit12.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: Symbol getter/setter declaration emit change

4 participants