-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Array.concat() 's params wrong!!! #17447
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
Comments
let a: ReadonlyArray<number> = [];
let b: number[] = [];
let c = b.concat([...a]); this will be ok. |
@MrKou47 It works. thanks. |
@RyanCavanaugh
Is it right definition for
Also we need the same definitions for other methods, like pop and so on... Am I right? |
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes. |
TypeScript Version: 2.4.1
Code
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: