-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed as not planned
Closed as not planned
Copy link
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
π Search Terms
inconsistency any never parameter
π Version & Regression Information
- This changed between versions 4.9.5 and 5.0.4
β― Playground Link
π» Code
type T1 = ( ( x : never ) => void ) extends ( ( ... x : any[] ) => void ) ? true : false;
type T2 = ( ( x : never ) => unknown ) extends ( ( ... x : any[] ) => unknown ) ? true : false;
// T1 is false, T2 is trueπ Actual behavior
5.0.4 and after : T1 is false, T2 is true.
4.9.5 and before : T1 is false, T2 is false.
π Expected behavior
At least T1 and T2 should be the same value.
And if any is not assignable to never, both should be false.
Additional information about the issue
5.0.4 link:
4.9.5 link:
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug