8 lines
191 B
TypeScript
8 lines
191 B
TypeScript
// 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;
|