Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

🤖 Pick PR #42766 (Avoid getting undefined `callSignat...) into release-4.2#42950

Merged
RyanCavanaugh merged 1 commit into
microsoft:release-4.2microsoft/TypeScript:release-4.2from
typescript-bot:pick/42766/release-4.2typescript-bot/TypeScript:pick/42766/release-4.2Copy head branch name to clipboard
Feb 25, 2021
Merged

🤖 Pick PR #42766 (Avoid getting undefined `callSignat...) into release-4.2#42950
RyanCavanaugh merged 1 commit into
microsoft:release-4.2microsoft/TypeScript:release-4.2from
typescript-bot:pick/42766/release-4.2typescript-bot/TypeScript:pick/42766/release-4.2Copy head branch name to clipboard

Conversation

@typescript-bot

Copy link
Copy Markdown
Contributor

This cherry-pick was triggered by a request on #42766
Please review the diff and merge if no changes are unexpected.
You can view the cherry-pick log here.

cc @andrewbranch

Component commits:
ed26816 Avoid getting undefined `callSignatures`/`constructSignatures` in `getPropertyOfType`
e350c35 (microsoft#40228) introduced a subtle bug: it switched the flags to an
alias, dropping `SymbolFlags.Property` --- and that makes
`symbolIsValue()` get to the `resolveAlias(symbol)` call, which leads to
`getPropertyOfType()` with`resolved.callSignatures`+`constructSignatures`
being `undefined`.  So initialize them in `setStructuredTypeMembers`
before calling `getNamedMembers()`.

Fixes microsoft#42350
@typescript-bot

Copy link
Copy Markdown
Contributor Author

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

@RyanCavanaugh RyanCavanaugh merged commit 822cb3a into microsoft:release-4.2 Feb 25, 2021
This was referenced Mar 6, 2021
This was referenced Mar 17, 2021
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.