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

Name _ was shadowed not raised for imported values #3657

Open
safareli opened this issue May 31, 2019 · 1 comment
Open

Name _ was shadowed not raised for imported values #3657

safareli opened this issue May 31, 2019 · 1 comment

Comments

@safareli
Copy link

safareli commented May 31, 2019

For example eq is imported from Prelude and you have:

case "foo" of
  "foo" -> "oof"
  eq -> eq

You will not get warning Name eq was shadowed but if you do:

let qq = "ff" in case "foo" of
  "foo" -> "oof"
  qq -> qq

You will get Name qq was shadowed.

@hdgarrood
Copy link
Contributor

Note that we are considering removing the shadowed name warning entirely: #3375. It might be worth coming to a decision about that before implementing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants