mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Add regression test
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user