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

Compilation should fail when constant is defined as itself #726

Closed
ondrejsevcik opened this Issue Sep 23, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@ondrejsevcik

ondrejsevcik commented Sep 23, 2016

Hi, take a look at the following code

import Html exposing (text)

status =
  status

main =
  text <| toString status

is it ok that it's possible to compile a program like this? I had a bug like this in my app and it was a bit hard to find where the error is since the compiler didn't warn me.

@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Sep 23, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Sep 23, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Sep 23, 2016

Contributor

This is tracked in elm/compiler#873.

Contributor

jvoigtlaender commented Sep 23, 2016

This is tracked in elm/compiler#873.

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