{"action":"opened","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1425","repository_url":"https://api.github.com/repos/elm-lang/elm-compiler","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1425/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1425/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1425/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/1425","id":161920319,"number":1425,"title":"Type-checking crash when record field is filled with top-level constant of same name","user":{"login":"jvoigtlaender","id":5853832,"avatar_url":"https://avatars.githubusercontent.com/u/5853832?v=3","gravatar_id":"","url":"https://api.github.com/users/jvoigtlaender","html_url":"https://github.com/jvoigtlaender","followers_url":"https://api.github.com/users/jvoigtlaender/followers","following_url":"https://api.github.com/users/jvoigtlaender/following{/other_user}","gists_url":"https://api.github.com/users/jvoigtlaender/gists{/gist_id}","starred_url":"https://api.github.com/users/jvoigtlaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvoigtlaender/subscriptions","organizations_url":"https://api.github.com/users/jvoigtlaender/orgs","repos_url":"https://api.github.com/users/jvoigtlaender/repos","events_url":"https://api.github.com/users/jvoigtlaender/events{/privacy}","received_events_url":"https://api.github.com/users/jvoigtlaender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-23T13:16:52Z","updated_at":"2016-06-23T13:16:52Z","closed_at":null,"body":"This program works as expected:\r\n```elm\r\nimport Html exposing (..)\r\nimport Html.App exposing (..)\r\n\r\ninit =\r\n    \"Test\"\r\n\r\nmain =\r\n    beginnerProgram\r\n        { model = init\r\n        , view = \\model -> div [] [ text model ]\r\n        , update = \\_ model -> model\r\n        }\r\n```\r\nBut this small and supposedly innocent variation of it (renaming the top-level `init` binding, along with its use, to `model`) crashes the compiler:\r\n```elm\r\nimport Html exposing (..)\r\nimport Html.App exposing (..)\r\n\r\nmodel =\r\n    \"Test\"\r\n\r\nmain =\r\n    beginnerProgram\r\n        { model = model\r\n        , view = \\model -> div [] [ text model ]\r\n        , update = \\_ model -> model\r\n        }\r\n```\r\nThe error message is:\r\n```\r\nelm-make: Could not find `model` when solving type constraints.\r\nelm-make: thread blocked indefinitely in an MVar operation\r\n```\r\nThis is with Elm 0.17 as obtained via the Windows installer."}}
{"actor":{"display_login":"jvoigtlaender"}}