6 lines
No EOL
194 B
TypeScript
6 lines
No EOL
194 B
TypeScript
function foo(...b:number[]){}
|
|
foo(); // ok
|
|
function foo2(a:string, ...b:number[]){}
|
|
foo2(); // should be an error
|
|
function foo3(a?:string, ...b:number[]){}
|
|
foo3(); // error but shouldn't be
|