{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3425","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3425/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3425/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3425/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3425","id":86294426,"number":3425,"title":"Identifiers inappropriately parsed as accessibility modifiers ","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/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":null,"comments":1,"created_at":"2015-06-08T19:07:20Z","updated_at":"2015-06-09T04:29:10Z","closed_at":"2015-06-09T04:29:10Z","body":"This is a follow-up to #2995. I did not batch these up in the original issue because I wanted to limit the scope of it.\r\n\r\nIn the following, we currently interpret `public` as a modifier to the function declaration, only to report that it is invalid to use said modifier.\r\n\r\n```TypeScript\r\npublic\r\nfunction f() {\r\n}\r\n```\r\n\r\nAs in the previous issue, ASI should take effect and you should have an identifier named `public` as an expression statement, followed by a function declaration."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/110220915","html_url":"https://github.com/Microsoft/TypeScript/issues/3425#issuecomment-110220915","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3425","id":110220915,"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},"created_at":"2015-06-09T04:29:10Z","updated_at":"2015-06-09T04:29:10Z","body":"I believe our current behavior is better, though restricting valid JS code. the chances that this pattern is intentional valid code are really slim."}}