Closed dwendelen closed 6 years ago
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.
In my development build, I get the following error immediately from this code:
-- SHADOWING ---------------------------------------------------------- temp.elm
These variables cannot have the same name:
10| ctor ctor next list =
^^^^ ^^^^
Think of a more helpful name for one of them and you should be all set!
Note: Linters advise against shadowing, so Elm makes “best practices” the
default. Read <https://elm-lang.org/hints/0.19.0/shadowing> for more details on
this choice.
My suspicion is that some sort of infinite type was created before shadowing was restricted. Not sure though. Anyway, thank you for the report!
When I try to process the code below with elm-make, then it eats all my memory and it uses all my CPU's at 100%. The same thing happens on http://elm-lang.org/try.
Version: elm-make 0.18 (Elm Platform 0.18.0)
Line 7 (type annotation of string) is the problem. Commenting this line out solves the problem. I am aware of the fact that the type annotation is wrong, but it should not eat all my resources. It should report a compilation error.