{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/123","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/123/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/123/events","html_url":"https://github.com/Microsoft/TypeScript/issues/123","id":38119550,"number":123,"title":"[Errors] error recovery with illegal modifiers inside function bodies","user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/2","html_url":"https://github.com/Microsoft/TypeScript/milestones/Community","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/2/labels","id":721044,"number":2,"title":"Community","description":"Issues in the 'Community' milestone are ones which we are accepting pull requests for","creator":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":28,"state":"open","created_at":"2014-07-14T23:24:58Z","updated_at":"2015-04-20T22:46:46Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-07-17T19:58:08Z","updated_at":"2015-04-20T22:46:46Z","closed_at":"2015-04-20T22:46:46Z","body":"```TypeScript\r\nexport function foo() {\r\n       export var x = this;    \r\n}\r\n```\r\n \r\nExpected: \r\n\r\n!!! Modifiers cannot appear here.\r\n\r\nActual: \r\n\r\n```TypeScript\r\n    export function foo() {\r\n       export var x = this;\r\n!!! Statement expected.\r\n    }\r\n!!! Declaration or statement expected.\r\n```\r\n\r\nSee also:\r\n\r\ntests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock2.ts\r\n\r\ntests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock3.ts\r\n\r\ntests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock4.ts"}}