TypeScript/tests/cases/compiler/errorElaboration.ts
2015-11-23 13:21:51 -08:00

13 lines
237 B
TypeScript

// Repro for #5712
interface Ref<T> {
prop: T;
}
interface Container<T> {
m1: Container<Ref<T>>;
m2: T;
}
declare function foo(x: () => Container<Ref<number>>): void;
let a: () => Container<Ref<string>>;
foo(a);