{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1012","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1012/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1012/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1012/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/1012","id":99681797,"number":1012,"title":"Generated JS resolves scope in a weird way, resulting in a crash","user":{"login":"zeckalpha","id":969868,"avatar_url":"https://avatars.githubusercontent.com/u/969868?v=3","gravatar_id":"","url":"https://api.github.com/users/zeckalpha","html_url":"https://github.com/zeckalpha","followers_url":"https://api.github.com/users/zeckalpha/followers","following_url":"https://api.github.com/users/zeckalpha/following{/other_user}","gists_url":"https://api.github.com/users/zeckalpha/gists{/gist_id}","starred_url":"https://api.github.com/users/zeckalpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeckalpha/subscriptions","organizations_url":"https://api.github.com/users/zeckalpha/orgs","repos_url":"https://api.github.com/users/zeckalpha/repos","events_url":"https://api.github.com/users/zeckalpha/events{/privacy}","received_events_url":"https://api.github.com/users/zeckalpha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-07T16:23:17Z","updated_at":"2015-08-07T16:23:41Z","closed_at":null,"body":"Definition order matters in an unexpected way for mutually recursive declarations.\r\n\r\nHere's an example: http://share-elm.com/sprout/55c4da64e4b06aacf0e8bcfe\r\n\r\nBy switching main's definition, you'll cause a crash. This seems to be due to how JS scope works, but we've not narrowed down a good fix. There's some more discussion in Dandandan/parser#15."},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/comments/128754232","html_url":"https://github.com/elm-lang/elm-compiler/issues/1012#issuecomment-128754232","issue_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1012","id":128754232,"user":{"login":"zeckalpha","id":969868,"avatar_url":"https://avatars.githubusercontent.com/u/969868?v=3","gravatar_id":"","url":"https://api.github.com/users/zeckalpha","html_url":"https://github.com/zeckalpha","followers_url":"https://api.github.com/users/zeckalpha/followers","following_url":"https://api.github.com/users/zeckalpha/following{/other_user}","gists_url":"https://api.github.com/users/zeckalpha/gists{/gist_id}","starred_url":"https://api.github.com/users/zeckalpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeckalpha/subscriptions","organizations_url":"https://api.github.com/users/zeckalpha/orgs","repos_url":"https://api.github.com/users/zeckalpha/repos","events_url":"https://api.github.com/users/zeckalpha/events{/privacy}","received_events_url":"https://api.github.com/users/zeckalpha/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T16:23:41Z","updated_at":"2015-08-07T16:23:41Z","body":"Sorry for the vagueness in the description! Hopefully the example is clear."}}