mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Add regression test
This commit is contained in:
parent
5bb8d2a590
commit
f6c79a631c
@ -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" });
|
||||
Loading…
x
Reference in New Issue
Block a user