Checked type of conditional type isn't matched for constraint in true clause unless the type parameter is constrained #31700
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Milestone
TypeScript Version: 3.5.1
Code
Actual behaviour
type Z1<T> = T extends () => Ctor ? InstanceType<ReturnType<T>> : never;
errorsExpected behaviour
type Z1<T> = T extends () => Ctor ? InstanceType<ReturnType<T>> : never;
should be validMore examples.
Playground Link:
The text was updated successfully, but these errors were encountered: