Skip to content

Commit 6a14450

Browse files
committed
Adding regression test
1 parent 4beedcf commit 6a14450

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Repro for #5712
2+
3+
interface Ref<T> {
4+
prop: T;
5+
}
6+
interface Container<T> {
7+
m1: Container<Ref<T>>;
8+
m2: T;
9+
}
10+
declare function foo(x: () => Container<Ref<number>>): void;
11+
let a: () => Container<Ref<string>>;
12+
foo(a);

0 commit comments

Comments
 (0)