TypeScript/tests/baselines/reference/errorElaboration.js
2015-11-23 13:22:23 -08:00

20 lines
322 B
TypeScript

//// [errorElaboration.ts]
// 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);
//// [errorElaboration.js]
// Repro for #5712
var a;
foo(a);