19 points · by metaweta · 5y ago · 2 comments
What does "now" mean here? The sample code works fine on 3.3 (the earliest version I could select on the playground, I'm sure it works on earlier versions too), released in January 2019.
Dependent types and function bivariance
TypeScript is unsound in part because of a desire to avoid forcing programmers to write a cast with no runtime effect just to satisfy the type checker. This code comes from their documentation on t…
reperiendi