// Regression test for #1002 // Before fix this code would cause infinite loop interface IObservable { n: IObservable; } interface ISubject extends IObservable { } declare function combineLatest(x: IObservable[]): void; declare function combineLatest(): void; function fn() { var values: ISubject[] = []; // Hang when using , but not combineLatest(values); }