{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/3347","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/3347/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/3347/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/3347/events","html_url":"https://github.com/facebook/flow/issues/3347","id":205566487,"number":3347,"title":"\"Unexpected token\" when annotating polymorphic functions with comment syntax ","user":{"login":"jhugman","id":99338,"avatar_url":"https://avatars.githubusercontent.com/u/99338?v=3","gravatar_id":"","url":"https://api.github.com/users/jhugman","html_url":"https://github.com/jhugman","followers_url":"https://api.github.com/users/jhugman/followers","following_url":"https://api.github.com/users/jhugman/following{/other_user}","gists_url":"https://api.github.com/users/jhugman/gists{/gist_id}","starred_url":"https://api.github.com/users/jhugman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhugman/subscriptions","organizations_url":"https://api.github.com/users/jhugman/orgs","repos_url":"https://api.github.com/users/jhugman/repos","events_url":"https://api.github.com/users/jhugman/events{/privacy}","received_events_url":"https://api.github.com/users/jhugman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-06T12:18:35Z","updated_at":"2017-02-06T12:35:57Z","closed_at":null,"body":"### STR\r\nUsing comment syntax, annotate a polymorphic function with a generic type.\r\n\r\n```js\r\n/* @flow */\r\nfunction polymorphicFn /*: <T> */ (value /*: T */) {}\r\n```\r\n\r\n### Expected: \r\nEquivalent to: \r\n\r\n```flow\r\n/* @flow */\r\nfunction polymorphicFn<T> (value: T) {}\r\n```\r\n\r\n### Observed:\r\n\r\n```\r\n  2: function polymorphicFn /*: <T> */ (value/*: T */) {}\r\n                            ^^^ Unexpected token /*:\r\n```\r\n\r\n### Demo\r\n[Live example][1].\r\n\r\n### Affects\r\n\r\n`0.37.4`, `0.38.0`, current `master`.\r\n\r\n [1]: https://flowtype.org/try/#0PQKgBAAgZgNg9gdzCYAoVUCuA7AxgFwEs5swAHOGATwFs4AnMgC0NwDFSAeAFQD4wAFADcAhjEwBTAFxhuASjABvAL7oseIiXKVaDZqw4B1QviYBhODRoTs+AM5hQMnvxSDR4iY5AzuyYAoqajgExKTYJAAKOnSMLOzYxqYWVjb27mKS3jJ2+PSE2ADm-oHKYKhAA"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/277668580","html_url":"https://github.com/facebook/flow/issues/3347#issuecomment-277668580","issue_url":"https://api.github.com/repos/facebook/flow/issues/3347","id":277668580,"user":{"login":"vkurchatkin","id":2993861,"avatar_url":"https://avatars.githubusercontent.com/u/2993861?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurchatkin","html_url":"https://github.com/vkurchatkin","followers_url":"https://api.github.com/users/vkurchatkin/followers","following_url":"https://api.github.com/users/vkurchatkin/following{/other_user}","gists_url":"https://api.github.com/users/vkurchatkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurchatkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurchatkin/subscriptions","organizations_url":"https://api.github.com/users/vkurchatkin/orgs","repos_url":"https://api.github.com/users/vkurchatkin/repos","events_url":"https://api.github.com/users/vkurchatkin/events{/privacy}","received_events_url":"https://api.github.com/users/vkurchatkin/received_events","type":"User","site_admin":false},"created_at":"2017-02-06T12:35:57Z","updated_at":"2017-02-06T12:35:57Z","body":"This works:\r\n\r\n```js\r\n/* @flow */\r\nfunction polymorphicFn /*:: <T> */ (value /*: T */) {}\r\n```"}}
{"actor":{"display_login":"vkurchatkin"}}