13 lines
480 B
Text
13 lines
480 B
Text
=== 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))
|
|
}
|
|
|