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

functions re-declared in the global scope don't warn #2400

Closed
lukeapage opened this issue May 18, 2015 · 1 comment
Closed

functions re-declared in the global scope don't warn #2400

lukeapage opened this issue May 18, 2015 · 1 comment

Comments

@lukeapage
Copy link
Member

In this code:

function a() { // wrong? not unused
}
function a() { // wrong? no error
}
a();

function b() {
  function a() { // wrong ? not unused
  }
  function a() { // a is already defined
  }
  a();
}
b();

the source looks like it doesn't warn about the re-definition deliberatly.. why? should it?

@lukeapage
Copy link
Member Author

duplicate of #1304

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

1 participant