{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19534","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19534/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19534/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19534/events","html_url":"https://github.com/Microsoft/TypeScript/issues/19534","id":269194185,"number":19534,"title":"Union type as key works for `type` but not for `interface`","user":{"login":"ccorcos","id":1794527,"avatar_url":"https://avatars3.githubusercontent.com/u/1794527?v=4","gravatar_id":"","url":"https://api.github.com/users/ccorcos","html_url":"https://github.com/ccorcos","followers_url":"https://api.github.com/users/ccorcos/followers","following_url":"https://api.github.com/users/ccorcos/following{/other_user}","gists_url":"https://api.github.com/users/ccorcos/gists{/gist_id}","starred_url":"https://api.github.com/users/ccorcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccorcos/subscriptions","organizations_url":"https://api.github.com/users/ccorcos/orgs","repos_url":"https://api.github.com/users/ccorcos/repos","events_url":"https://api.github.com/users/ccorcos/events{/privacy}","received_events_url":"https://api.github.com/users/ccorcos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-27T18:22:47Z","updated_at":"2017-10-27T18:22:47Z","closed_at":null,"author_association":"NONE","body":"<!-- BUGS: Please use this template. -->\r\n<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.7.0-dev.201xxxxx\r\n\r\n**Code**\r\n\r\n```ts\r\ntype X = \"a\" | \"b\"\r\n\r\ntype A = {[x in X]: string} // no error\r\n\r\ninterface  B {[x in X]: string} // error\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nIts my understanding that type and interface are exactly the same thing.\r\n\r\n**Actual behavior:**\r\n"}}
{"actor":{"display_login":"ccorcos"}}