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

Module and constructor names can clash #589

Closed
jonashaag opened this issue Apr 18, 2014 · 4 comments
Closed

Module and constructor names can clash #589

jonashaag opened this issue Apr 18, 2014 · 4 comments

Comments

@jonashaag
Copy link

https://gist.github.com/anonymous/11048436

shows only

<internal structure>

but should show

"hi"

"Test" refers to a module and a constructor. Elm confused these names, resulting in wrong Javascript code.

@jonashaag
Copy link
Author

@keenbug

@keenbug
Copy link

keenbug commented Apr 18, 2014

maybe similar problem/cause as #582?

@evancz evancz added the bug label Apr 18, 2014
@evancz evancz added this to the imports and exports milestone Apr 18, 2014
@evancz
Copy link
Member

evancz commented Apr 18, 2014

I think this is separate from that issue. I added this problem to the todo list for the canonical branch. In the meantime, the best work-around is to avoid shadowing names like this.

@evancz
Copy link
Member

evancz commented Jun 12, 2014

Resolved in canonical branch. Thanks for the report!

@evancz evancz closed this as completed Jun 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants