Add regression test
This commit is contained in:
parent
81fc2a14d1
commit
07e4819b8b
7
tests/cases/compiler/mutuallyRecursiveCallbacks.ts
Normal file
7
tests/cases/compiler/mutuallyRecursiveCallbacks.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Repro from #18277
|
||||
|
||||
interface Foo<T> { (bar: Bar<T>): void };
|
||||
type Bar<T> = (foo: Foo<T>) => Foo<T>;
|
||||
declare function foo<T>(bar: Bar<T>): void;
|
||||
declare var bar: Bar<{}>;
|
||||
bar = foo;
|
Loading…
Reference in a new issue