Closed
Description
TypeScript Version: 3.4.1
Search Terms:
Code
function main (input :readonly any[]) {
const output :any[] = [];
Array.prototype.push.apply(output, input);
return output;
}
Expected behavior:
Not to report an error.
Actual behavior:
Report error TS2345
.
Playground Link:
Related Issues:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels