{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/925","labels_url":"https://api.github.com/repos/facebook/flow/issues/925/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/925/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/925/events","html_url":"https://github.com/facebook/flow/issues/925","id":110733801,"number":925,"title":"asking flow a type of a tuple prints an odd result ","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-09T20:51:25Z","updated_at":"2015-10-09T21:32:00Z","closed_at":null,"body":"Here is the code:\r\n\r\n```js\r\n/* @flow */\r\n\r\ntype Point = [number, string]\r\nconst x:Point = [1, 2]\r\n```\r\n\r\nAsking flow question about the type of `x` produces somewhat odd result IMO:\r\n\r\n```sh\r\nflowing  (master) flow type-at-pos src/scratch.js 4 7\r\nArray<number | string>\r\n/Users/gozala/Projects/flowing/src/scratch.js:4:7,4:13\r\n```\r\n\r\nAlso it does seem to understand that type is in fact tuple of `number` and `string` rather than `Array<number|string>`\r\n\r\n```\r\nflowing  (master) flow status\r\nsrc/scratch.js:4\r\n  4: const x:Point = [1, 2]\r\n                         ^ number. This type is incompatible with\r\n  3: type Point = [number, string]\r\n                           ^^^^^^ string\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/146990451","html_url":"https://github.com/facebook/flow/issues/925#issuecomment-146990451","issue_url":"https://api.github.com/repos/facebook/flow/issues/925","id":146990451,"user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T21:32:00Z","updated_at":"2015-10-09T21:32:00Z","body":"Also I'd argue that `.filter` on tuples also makes no senses. "}}