20 lines
322 B
TypeScript
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);
|