-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Object.assign return type #45215
Comments
Why would you expect |
The return type of In this example, the compiler sees In the likely case that this will be closed as a design limitation, you should probably just work around it by asserting it like |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
π Search Terms
object.assign return type
π Version & Regression Information
Faced this problem in the 4.3.2 version and checked on 4.3.5, 4.4.0-beta(problem still exists)
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Incorrect type inference
π Expected behavior
Correct type inference
The text was updated successfully, but these errors were encountered: