Skip to content
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

Design issue - Function typing inconsistency (?) #145

Closed
bobOnGitHub opened this issue Sep 24, 2017 · 1 comment
Closed

Design issue - Function typing inconsistency (?) #145

bobOnGitHub opened this issue Sep 24, 2017 · 1 comment

Comments

@bobOnGitHub
Copy link

bobOnGitHub commented Sep 24, 2017

From the Typescript web site ( https://www.typescriptlang.org/docs/handbook/functions.html ) ;

let myAdd: (x: number, y: number) => number =
    function(x: number, y: number): number { return x + y; };

....but an arrow function is not functionally the same as a "function" function - they are not the same (type of) thing.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 26, 2017

Issue already addressed in microsoft/TypeScript#18749

@mhegazy mhegazy closed this as completed Sep 26, 2017
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

No branches or pull requests

2 participants