You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler allows violation of a generic function type interface #11877
The code should not compile because identity does not satisfy the constraints of GenericIdentityFn. Namely, it accepts an argument of type number and returns type string, whereas the interface GenericIdentityFn describes a function that accepts an argument of type T and returns type T.
Activity
HerringtonDarkholme commentedon Oct 27, 2016
Related #11537
mhegazy commentedon May 18, 2017
Tracked by #5616