Skip to content

Conversation

@a-tarasyuk
Copy link
Contributor

Fixes #52594

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Feb 4, 2023
/** @this {Test} */
function (d) {
>function (d) { console.log(d === this.data.length) } : (this: Test, d: number) => void
>function (d) { console.log(d === this.data.length) } : (d: number) => void
Copy link
Member

Choose a reason for hiding this comment

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

Does this test need to be preserved somewhere with a .js extension so we can still cover this case, or do we have another test which does this correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a test for the JavaScript case.

@jakebailey jakebailey requested a review from sandersn February 5, 2023 23:32
@sandersn sandersn merged commit 70d14f3 into microsoft:main Feb 6, 2023
@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 Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@this incorrectly applies in TS files in typeToString

4 participants