TypeScript/tests/baselines/reference/conditionalTypeGenericInSignatureTypeParameterConstraint.types

9 lines
281 B
Plaintext

=== tests/cases/compiler/conditionalTypeGenericInSignatureTypeParameterConstraint.ts ===
// should be x
type H_inline1<x> = (<o extends x>() => o) extends (() => infer o) ? o : never;
>H_inline1 : x
type Result = H_inline1<string>; // should be `string`
>Result : string