{"action":"opened","issue":{"url":"https://api.github.com/repos/wavebeem/squiggle/issues/73","labels_url":"https://api.github.com/repos/wavebeem/squiggle/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/wavebeem/squiggle/issues/73/comments","events_url":"https://api.github.com/repos/wavebeem/squiggle/issues/73/events","html_url":"https://github.com/wavebeem/squiggle/issues/73","id":109907703,"number":73,"title":"compiler: throw on creation of object literal with duplicate keys","user":{"login":"wavebeem","id":176815,"avatar_url":"https://avatars.githubusercontent.com/u/176815?v=3","gravatar_id":"","url":"https://api.github.com/users/wavebeem","html_url":"https://github.com/wavebeem","followers_url":"https://api.github.com/users/wavebeem/followers","following_url":"https://api.github.com/users/wavebeem/following{/other_user}","gists_url":"https://api.github.com/users/wavebeem/gists{/gist_id}","starred_url":"https://api.github.com/users/wavebeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavebeem/subscriptions","organizations_url":"https://api.github.com/users/wavebeem/orgs","repos_url":"https://api.github.com/users/wavebeem/repos","events_url":"https://api.github.com/users/wavebeem/events{/privacy}","received_events_url":"https://api.github.com/users/wavebeem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-05T23:40:32Z","updated_at":"2015-10-05T23:40:32Z","closed_at":null,"body":"Consider the following object literal:\r\n\r\n```\r\nlet a = \"foo\"\r\nlet b = \"foo\"\r\nin {(a): 1, (b): 2}\r\n```\r\n\r\nWe can't know at compile time that this object has repeated keys in it, but the function `$object` used to make objects in the runtime could prevent this behavior and throw an error."}}