Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upA type alias allows the same key to be defined multiple times #867
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
May 17, 2017
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
May 17, 2017
|
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. |
alessiosantangelo
changed the title from
Model allows the same key to be defined multiple times
to
A type alias allows the same key to be defined multiple times
May 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lukewestby
May 17, 2017
Member
Hey @alessiosantangelo,
Probably this is not a problem of Elm itself, but I would share it with you.
this looks like something that we would want to address. Since this issue has to do with the compiler
I'm going to close it here and would you mind reopening on https://github.com/elm-lang/elm-compiler? A simple copy-and-paste into an issue over there would be great.
Thanks!
|
Hey @alessiosantangelo,
this looks like something that we would want to address. Since this issue has to do with the compiler Thanks! |
alessiosantangelo commentedMay 17, 2017
Hi, we experienced an issue using Elm in production which breaks IE 11.
It seems that Elm allows the same key to be defined multiple times inside the same "piece" of model.
E.g.
The
hasFranchigiais used two times inside the same type.
The compilers does not throw any error or warning, but the Javascript Strict Mode doesn't allow multiple instances of the same key in the same object.
Probably this is not a problem of Elm itself, but I would share it with you.
Thanks,
Alessio