Add regression test

This commit is contained in:
Anders Hejlsberg 2017-10-11 12:01:38 -07:00
parent 81fc2a14d1
commit 07e4819b8b

View 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;