Skip to content

Fixed bug where function type literals may omit their '=>'. #659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 12, 2014

Conversation

DanielRosenwasser
Copy link
Member

Fixes #654.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 11, 2014

👍


var type: TypeNode;

if (returnToken === SyntaxKind.EqualsGreaterThanToken) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i'd prefer if the caller was explicit about if the returnToken/returnType was optional or not. trying to reinfer that within this method is extremely subtle and confusing.

DanielRosenwasser added a commit that referenced this pull request Sep 12, 2014
Fixed bug where function type literals may omit their '=>'.
@DanielRosenwasser DanielRosenwasser merged commit c277db0 into release-1.1 Sep 12, 2014
@DanielRosenwasser DanielRosenwasser deleted the functionTypeLiteralsNeedArrows branch September 12, 2014 21:36
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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