{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6762","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6762/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6762/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6762/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6762","id":130063889,"number":6762,"title":"validation of protected properties is broken when class is merged with interface from another file","user":{"login":"vladima","id":8052307,"avatar_url":"https://avatars.githubusercontent.com/u/8052307?v=3","gravatar_id":"","url":"https://api.github.com/users/vladima","html_url":"https://github.com/vladima","followers_url":"https://api.github.com/users/vladima/followers","following_url":"https://api.github.com/users/vladima/following{/other_user}","gists_url":"https://api.github.com/users/vladima/gists{/gist_id}","starred_url":"https://api.github.com/users/vladima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladima/subscriptions","organizations_url":"https://api.github.com/users/vladima/orgs","repos_url":"https://api.github.com/users/vladima/repos","events_url":"https://api.github.com/users/vladima/events{/privacy}","received_events_url":"https://api.github.com/users/vladima/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"vladima","id":8052307,"avatar_url":"https://avatars.githubusercontent.com/u/8052307?v=3","gravatar_id":"","url":"https://api.github.com/users/vladima","html_url":"https://github.com/vladima","followers_url":"https://api.github.com/users/vladima/followers","following_url":"https://api.github.com/users/vladima/following{/other_user}","gists_url":"https://api.github.com/users/vladima/gists{/gist_id}","starred_url":"https://api.github.com/users/vladima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladima/subscriptions","organizations_url":"https://api.github.com/users/vladima/orgs","repos_url":"https://api.github.com/users/vladima/repos","events_url":"https://api.github.com/users/vladima/events{/privacy}","received_events_url":"https://api.github.com/users/vladima/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/19","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.8.2","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/19/labels","id":1549707,"number":19,"title":"TypeScript 1.8.2","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":8,"state":"open","created_at":"2016-01-28T19:01:30Z","updated_at":"2016-02-01T21:08:34Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-31T02:09:11Z","updated_at":"2016-02-01T21:14:06Z","closed_at":"2016-02-01T18:00:54Z","body":"falling test cases\r\n```ts\r\n// @filename: a.ts\r\nclass A {\r\n    protected foo() {}\r\n}\r\n// @filename: b.ts\r\ninterface A { }\r\n\r\nclass B extends A {\r\n    protected foo() {}\r\n}\r\n```\r\n\r\n```ts\r\n// @module: amd\r\n\r\n// @filename: a.ts\r\nexport class A {\r\n    protected protected: any;\r\n\r\n    protected setProtected(val: any) {\r\n        this.protected = val;\r\n    }\r\n}\r\n\r\n// @filename: b.ts\r\nimport {A} from './a';\r\n\r\ndeclare module \"./a\" {\r\n    interface A { }\r\n}\r\n\r\nexport class B extends A {\r\n    protected setProtected() {\r\n\r\n    }\r\n}\r\n```\r\n\r\nBoth tests should pass without errors however now the same error is reported in both cases:\r\n`Class 'B' incorrectly extends base class 'A'.`"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/178194462","html_url":"https://github.com/Microsoft/TypeScript/issues/6762#issuecomment-178194462","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6762","id":178194462,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T21:14:06Z","updated_at":"2016-02-01T21:14:06Z","body":"yes. please see https://github.com/Microsoft/TypeScript/pull/6786"}}