Closed

Description
According to the #21496 PR, there should be string & number
expected results
type Bar<T> = T extends { a: (x: infer U) => void; b: (x: infer U) => void } ? U : never;
type T20 = Bar<{ a: (x: string) => void; b: (x: string) => void }>; // string
type T21 = Bar<{ a: (x: string) => void; b: (x: number) => void }>; // string & number
However, under ts version 3.6.4, the results are not as expected
Metadata
Metadata
Assignees
Labels
No labels