extends clause leaks temporary type #31099
Labels
Bug
A bug in TypeScript
Domain: Type Inference
Related to type inference performed during signature resolution or `infer` type resolution
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 3.5.0-dev.20190420
Code
Expected behavior: Infer some type
Actual behavior: The extends clause leaks a temporary type U. Happens for
any
andunknown
Playground Link: Playground
The text was updated successfully, but these errors were encountered: