{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/806","labels_url":"https://api.github.com/repos/facebook/flow/issues/806/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/806/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/806/events","html_url":"https://github.com/facebook/flow/issues/806","id":106827450,"number":806,"title":"`var x = x.y;` should be an error","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-16T18:02:06Z","updated_at":"2015-09-16T18:02:06Z","closed_at":null,"body":"I would have expected Flow to flag this as an error:\r\n\r\n```javascript\r\nvar x = x.y;\r\n```\r\n\r\n`x` is undefined, so accessing a member should be an error. This sort of thing is usually an indication of a typo.\r\n\r\n```\r\n$ echo 'var x = x.y;' | flow check-contents\r\nNo errors!\r\n```\r\n\r\nThis is with Flow 0.15."}}