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

Cannot read property 'ctor' of undefined #680

Closed
Hurtak opened this Issue Aug 7, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@Hurtak

Hurtak commented Aug 7, 2016

The following code compiles and throws runtime error Uncaught TypeError: Cannot read property 'ctor' of undefined
It should not compile since I am referencing non-existing variable

Mimimal example code:

import Html exposing (text)

main =
    (List.foldl (\current aggregated -> 
        let
            newAggregated = 
                current :: newAggregated -- typo here, was supposed to be aggregated
        in
            newAggregated
    ) [] [1, 2, 3]) |> toString |> text
@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Aug 7, 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 Aug 7, 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.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Aug 7, 2016

Member

This is a duplicate of elm/compiler#873

Member

evancz commented Aug 7, 2016

This is a duplicate of elm/compiler#873

@evancz evancz closed this Aug 7, 2016

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