{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5492","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5492/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5492/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5492/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5492","id":114586216,"number":5492,"title":"Inconsistency in polymorphic 'this' typing","user":{"login":"zhuravlikjb","id":4499495,"avatar_url":"https://avatars.githubusercontent.com/u/4499495?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuravlikjb","html_url":"https://github.com/zhuravlikjb","followers_url":"https://api.github.com/users/zhuravlikjb/followers","following_url":"https://api.github.com/users/zhuravlikjb/following{/other_user}","gists_url":"https://api.github.com/users/zhuravlikjb/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuravlikjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuravlikjb/subscriptions","organizations_url":"https://api.github.com/users/zhuravlikjb/orgs","repos_url":"https://api.github.com/users/zhuravlikjb/repos","events_url":"https://api.github.com/users/zhuravlikjb/events{/privacy}","received_events_url":"https://api.github.com/users/zhuravlikjb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T12:39:09Z","updated_at":"2015-11-02T12:39:09Z","closed_at":null,"body":"```(typescript)\r\nclass A {\r\n    p: A;\r\n    c = this.p;\r\n}\r\n\r\nclass B extends A {\r\n    p: B;    \r\n}\r\n\r\nvar s: B;\r\nvar k = s.c; // 'k' is 'A'\r\n```\r\n\r\n```(typescript)\r\nclass A {\r\n    c = this;\r\n}\r\n\r\nclass B extends A {        \r\n}\r\n\r\nvar s: B;\r\nvar k = s.c; // 'k' is 'B'\r\n```"}}