{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/2977","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/2977/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/2977/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/2977/events","html_url":"https://github.com/facebook/flow/issues/2977","id":194291639,"number":2977,"title":"Exact type doesn't work with possible empty object","user":{"login":"gcanti","id":878912,"avatar_url":"https://avatars1.githubusercontent.com/u/878912?v=4","gravatar_id":"","url":"https://api.github.com/users/gcanti","html_url":"https://github.com/gcanti","followers_url":"https://api.github.com/users/gcanti/followers","following_url":"https://api.github.com/users/gcanti/following{/other_user}","gists_url":"https://api.github.com/users/gcanti/gists{/gist_id}","starred_url":"https://api.github.com/users/gcanti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcanti/subscriptions","organizations_url":"https://api.github.com/users/gcanti/orgs","repos_url":"https://api.github.com/users/gcanti/repos","events_url":"https://api.github.com/users/gcanti/events{/privacy}","received_events_url":"https://api.github.com/users/gcanti/received_events","type":"User","site_admin":false},"labels":[{"id":149548105,"url":"https://api.github.com/repos/facebook/flow/labels/feature%20request","name":"feature request","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-12-08T09:55:52Z","updated_at":"2018-05-24T06:54:11Z","closed_at":null,"author_association":"NONE","body":"Repro\r\n\r\n```js\r\ntype A = {| a?: string |};\r\nconst x: A = {} // error: object literal. Inexact type is incompatible with exact type\r\n```\r\n\r\nFlow version 0.36"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/391608920","html_url":"https://github.com/facebook/flow/issues/2977#issuecomment-391608920","issue_url":"https://api.github.com/repos/facebook/flow/issues/2977","id":391608920,"user":{"login":"mrkev","id":1285131,"avatar_url":"https://avatars0.githubusercontent.com/u/1285131?v=4","gravatar_id":"","url":"https://api.github.com/users/mrkev","html_url":"https://github.com/mrkev","followers_url":"https://api.github.com/users/mrkev/followers","following_url":"https://api.github.com/users/mrkev/following{/other_user}","gists_url":"https://api.github.com/users/mrkev/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkev/subscriptions","organizations_url":"https://api.github.com/users/mrkev/orgs","repos_url":"https://api.github.com/users/mrkev/repos","events_url":"https://api.github.com/users/mrkev/events{/privacy}","received_events_url":"https://api.github.com/users/mrkev/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T06:54:11Z","updated_at":"2018-05-24T06:54:11Z","author_association":"CONTRIBUTOR","body":"Wait, sorry. I lost track of this issue and perhaps now I just don't have the context I used to before. How does your example demonstrate its a bug? Focusing on this:\r\n\r\n```javascript\r\nconst a = {}; // unsealed\r\nconst b: {||} = {}; // exact object type\r\nconst c: {} = {}; // sealed\r\n```\r\n`{}` is always inferred to be unsealed, which means it errors only on `b`. \r\n\r\n"}}
{"actor":{"display_login":"mrkev"}}