Skip to content

Only call getTypeOfSymbol recursively if it's a value#3160

Merged
JsonFreeman merged 2 commits into
release-1.5from
getTypeOfAlias
May 15, 2015
Merged

Only call getTypeOfSymbol recursively if it's a value#3160
JsonFreeman merged 2 commits into
release-1.5from
getTypeOfAlias

Conversation

@JsonFreeman
Copy link
Copy Markdown
Contributor

This PR is intended to replace #3141, to fix #2933. Essentially, we have a design for aliases (#3158) that only continues to follow aliases if the symbol it hits is a pure alias. If it has any other meanings, it stops. This way, an alias can only refer to one symbol, and not multiple symbols depending on the meaning.

Comment thread src/compiler/checker.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this code needs documentation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added a comment at 26f73d4

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

👍

JsonFreeman added a commit that referenced this pull request May 15, 2015
Only call getTypeOfSymbol recursively if it's a value
@JsonFreeman JsonFreeman merged commit 79ab85e into release-1.5 May 15, 2015
@JsonFreeman JsonFreeman deleted the getTypeOfAlias branch May 15, 2015 06:43
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants