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