Skip to content

Using getContextualType in inferAssignedType - #487

Merged
tomblind merged 2 commits into
masterfrom
final-function-inference-fix
Mar 20, 2019
Merged

Using getContextualType in inferAssignedType#487
tomblind merged 2 commits into
masterfrom
final-function-inference-fix

Conversation

@tomblind

Copy link
Copy Markdown
Collaborator

fixes #486

This replaces the body of inferAssignedType with typescript's api function that does the same thing. Hopefully this will prevent more issues arising regarding function expression inference.

@Perryvw Perryvw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I love PRs that just delete some code without breaking tests :D

@tomblind
tomblind merged commit d0c4f72 into master Mar 20, 2019
@tomblind
tomblind deleted the final-function-inference-fix branch March 20, 2019 13:36
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.

Transpiler crash with Union/Array/Interface/Function

2 participants