12 lines
237 B
TypeScript
12 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);
|