Skip to content

[Errors] function overload with statements before its implementation #75

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

Closed
mhegazy opened this issue Jul 17, 2014 · 0 comments · Fixed by #317
Closed

[Errors] function overload with statements before its implementation #75

mhegazy opened this issue Jul 17, 2014 · 0 comments · Fixed by #317
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

function foo();
1+1;
function foo():string { return "a" }

Expected: Function implementation expected.

Actual: no error

@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
@vladima vladima assigned billti, mhegazy and vladima and unassigned vladima, billti and mhegazy Jul 22, 2014
vladima added a commit that referenced this issue Jul 31, 2014
Disallow statements between overloads
fixed #75 and #92
@vladima vladima removed the Fixed label Aug 5, 2014
@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
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants