4 lines
No EOL
79 B
TypeScript
4 lines
No EOL
79 B
TypeScript
function foo(...rest: number) { // error
|
|
var x: string = rest[0];
|
|
return x;
|
|
} |