14 lines
480 B
Plaintext
14 lines
480 B
Plaintext
|
=== tests/cases/compiler/restParameterNoTypeAnnotation.ts ===
|
||
|
function foo(...rest) {
|
||
|
>foo : Symbol(foo, Decl(restParameterNoTypeAnnotation.ts, 0, 0))
|
||
|
>rest : Symbol(rest, Decl(restParameterNoTypeAnnotation.ts, 0, 13))
|
||
|
|
||
|
var x: number = rest[0];
|
||
|
>x : Symbol(x, Decl(restParameterNoTypeAnnotation.ts, 1, 8))
|
||
|
>rest : Symbol(rest, Decl(restParameterNoTypeAnnotation.ts, 0, 13))
|
||
|
|
||
|
return x;
|
||
|
>x : Symbol(x, Decl(restParameterNoTypeAnnotation.ts, 1, 8))
|
||
|
}
|
||
|
|