4b96edf72f
* Treat `...` in jsdoc type as creating a synthetic rest parameter -- not as an array type * Change type parsing so `...T[]` parses as `...(T[])` and not `(...T)[]` * Replace the last parameter with ...args, and make access to it potentially undefined * Code review
10 lines
159 B
TypeScript
10 lines
159 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @strict: true
|
|
// @noEmit: true
|
|
|
|
// @Filename: /a.js
|
|
/** @param {...number} a */
|
|
function f(...a) {
|
|
a; // number[]
|
|
}
|