mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add regression test
This commit is contained in:
1 parent
81fc2a14d1
commit
07e4819b8b
1 file changed
+7
@@ -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