{"action":"closed","issue":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1862","labels_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1862/labels{/name}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1862/comments","events_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1862/events","html_url":"https://github.com/idris-lang/Idris-dev/issues/1862","id":54722736,"number":1862,"title":"Let statements break record projection creation","user":{"login":"bmsherman","id":1811048,"avatar_url":"https://avatars.githubusercontent.com/u/1811048?v=3","gravatar_id":"","url":"https://api.github.com/users/bmsherman","html_url":"https://github.com/bmsherman","followers_url":"https://api.github.com/users/bmsherman/followers","following_url":"https://api.github.com/users/bmsherman/following{/other_user}","gists_url":"https://api.github.com/users/bmsherman/gists{/gist_id}","starred_url":"https://api.github.com/users/bmsherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmsherman/subscriptions","organizations_url":"https://api.github.com/users/bmsherman/orgs","repos_url":"https://api.github.com/users/bmsherman/repos","events_url":"https://api.github.com/users/bmsherman/events{/privacy}","received_events_url":"https://api.github.com/users/bmsherman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T03:22:15Z","updated_at":"2015-05-17T22:05:35Z","closed_at":"2015-05-17T22:05:35Z","body":"This code\r\n```Idris\r\nrecord Test : Type where\r\n    MkTest : let x : Nat = Z in (n : Nat) -> Test\r\n```\r\nresults in this error:\r\n```\r\nType checking ./Test.idr\r\nTest.idr:9:8:\r\nWhen elaborating right hand side of Test.Test.n:\r\nNo such variable _p_n\r\n```\r\n\r\nRemoving the (unnecessary) let statement removes the error."}}