Add regression test

This commit is contained in:
Anders Hejlsberg 2018-01-18 17:28:37 -08:00
parent 5bb8d2a590
commit f6c79a631c

View file

@ -0,0 +1,6 @@
// @strict: true
// Repro from #21273
declare function conforms<T>(source: { [K in keyof T]: (val: T[K]) => boolean }): (value: T) => boolean;
conforms({ foo: (v: string) => false })({ foo: "hello" });