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

Run time exeption happening #1417

Closed
Arseny-N opened this issue Jun 16, 2016 · 2 comments
Closed

Run time exeption happening #1417

Arseny-N opened this issue Jun 16, 2016 · 2 comments

Comments

@Arseny-N
Copy link

Arseny-N commented Jun 16, 2016

Hi to everyone, great project! But this code generates a run-time exception:

    hi { a , b } = let
        a = List.map (\x-> x+1) a 
        in b::a 
    hi { a = [1,2], b = 3 }

This is the Repl output:

TypeError: Cannot read property 'ctor' of undefined

Firefox prints in the dev console approximately the following:

TypeError: xs is undefined    ...  index.html:1900:9

I use Linux, elm platform version is 0.17.0, firefox version is 47.0.

@process-bot
Copy link

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.

@Arseny-N Arseny-N changed the title Run time exeption happening in Run time exeption happening Jun 16, 2016
@evancz
Copy link
Member

evancz commented Jun 16, 2016

This is a duplicate of #873. Ask on the the Elm Slack or elm-discuss for further clarification if necessary. http://elm-lang.org/community

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

No branches or pull requests

3 participants