TypeScript Version: 3.4.1
Search Terms:
Code
functionmain(input :readonlyany[]){constoutput :any[]=[];Array.prototype.push.apply(output,input);returnoutput;}Expected behavior:
Not to report an error.
Actual behavior:
Report error TS2345.
Playground Link:
Related Issues:
TypeScript Version: 3.4.1
Search Terms:
Code
Expected behavior:
Not to report an error.
Actual behavior:
Report error
TS2345.Playground Link:
Related Issues: