We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.
TS2345
Playground Link:
Related Issues: