{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/410","labels_url":"https://api.github.com/repos/facebook/flow/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/410/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/410/events","html_url":"https://github.com/facebook/flow/issues/410","id":70465027,"number":410,"title":"Calling non-existent static method does not produce 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":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T17:19:59Z","updated_at":"2015-06-19T01:16:01Z","closed_at":"2015-06-19T01:16:01Z","body":"This code shouldn't type check, since `goodbye` isn't declared as a static method on `C`:\r\n\r\n```javascript\r\n/** @flow */\r\nclass C {\r\n  static hello(): string {\r\n    return 'hello';\r\n  }\r\n}\r\n\r\nfunction foo() {\r\n  var hello = C.goodbye();\r\n}\r\n```\r\n\r\nHowever, it type-checks with no errors under Flow 0.9.2."}}