Test for rest parameters(copied from language service tests)

This commit is contained in:
Sheetal Nandi 2015-09-10 14:09:29 -07:00
parent 57e17d2663
commit 7e30827ebe
4 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,5 @@
//// [a.js]
function foo(...a) { }
//// [b.js]
function foo(...a) { }

View file

@ -0,0 +1,5 @@
=== tests/cases/compiler/a.js ===
function foo(...a) { }
>foo : Symbol(foo, Decl(a.js, 0, 0))
>a : Symbol(a, Decl(a.js, 0, 13))

View file

@ -0,0 +1,5 @@
=== tests/cases/compiler/a.js ===
function foo(...a) { }
>foo : (...a: any[]) => void
>a : any[]

View file

@ -0,0 +1,4 @@
// @filename: a.js
// @target: es6
// @out: b.js
function foo(...a) { }