Skip to content

Compiler 1.8.2 hangs when building an array of two classes #7293

@Tragetaschen

Description

@Tragetaschen

TypeScript Version:

1.8.2

Code

import {BehaviorSubject} from 'rxjs/Rx';

class Foo extends BehaviorSubject<string> {
}

class Bar extends BehaviorSubject<any>{
}

var ARRAY = [
    Foo,
    Bar,
];

The 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.

Here is my package.json snippet:

  "devDependencies": {
    "typescript": "1.8.2"
  },
  "dependencies": {
    "rxjs": "5.0.0-beta.2"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions