{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7293","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7293/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7293/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7293/events","html_url":"https://github.com/Microsoft/TypeScript/issues/7293","id":137224487,"number":7293,"title":"Compiler 1.8.2 hangs when building an array of two classes","user":{"login":"Tragetaschen","id":1947968,"avatar_url":"https://avatars.githubusercontent.com/u/1947968?v=3","gravatar_id":"","url":"https://api.github.com/users/Tragetaschen","html_url":"https://github.com/Tragetaschen","followers_url":"https://api.github.com/users/Tragetaschen/followers","following_url":"https://api.github.com/users/Tragetaschen/following{/other_user}","gists_url":"https://api.github.com/users/Tragetaschen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tragetaschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tragetaschen/subscriptions","organizations_url":"https://api.github.com/users/Tragetaschen/orgs","repos_url":"https://api.github.com/users/Tragetaschen/repos","events_url":"https://api.github.com/users/Tragetaschen/events{/privacy}","received_events_url":"https://api.github.com/users/Tragetaschen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","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/1","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%202.0","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1/labels","id":721040,"number":1,"title":"TypeScript 2.0","description":"The next major release of TypeScript","creator":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"open_issues":132,"closed_issues":80,"state":"open","created_at":"2014-07-14T23:24:03Z","updated_at":"2016-03-02T01:54:20Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-02-29T11:18:08Z","updated_at":"2016-03-02T03:30:09Z","closed_at":null,"body":"**TypeScript Version:** \r\n\r\n1.8.2\r\n\r\n**Code**\r\n\r\n```ts\r\nimport {BehaviorSubject} from 'rxjs/Rx';\r\n\r\nclass Foo extends BehaviorSubject<string> {\r\n}\r\n\r\nclass Bar extends BehaviorSubject<any>{\r\n}\r\n\r\nvar ARRAY = [\r\n    Foo,\r\n    Bar,\r\n];\r\n\r\n```\r\n\r\nThe `BehaviorSubject` is a requirement, just using a local, generic class makes it work. I haven't tried further reducing the base class. Once you comment out one of the two array members, the compiler doesn't hang anymore.\r\n\r\nHere is my `package.json` snippet:\r\n```\r\n  \"devDependencies\": {\r\n    \"typescript\": \"1.8.2\"\r\n  },\r\n  \"dependencies\": {\r\n    \"rxjs\": \"5.0.0-beta.2\"\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/191037585","html_url":"https://github.com/Microsoft/TypeScript/issues/7293#issuecomment-191037585","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7293","id":191037585,"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},"created_at":"2016-03-02T03:30:09Z","updated_at":"2016-03-02T03:30:09Z","body":"Fix is checked in and should be available on today's nightly build: `typescript@next` on `npm`. Can you give it a try and check if it resolves your issue?"}}