Added declaration option to empty destructuring tests.

This commit is contained in:
Daniel Rosenwasser 2015-09-01 16:09:44 -07:00
parent 5542e396d7
commit 9d3907ffbe
16 changed files with 16 additions and 8 deletions

View file

@ -1,4 +1,4 @@
// @declaration: true
function f([]) {
var x, y, z;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f(a, []) {
var x, y, z;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f(a, []) {
var x, y, z;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f([] = [1,2,3,4]) {
var x, y, z;

View file

@ -1,4 +1,5 @@
// @target: es5
// @declaration: true
var a: any;

View file

@ -1,4 +1,5 @@
// @target: es6
// @declaration: true
var a: any;

View file

@ -1,4 +1,5 @@
// @target: es5
// @declaration: true
var a: any;
let x, y, z, a1, a2, a3;

View file

@ -1,4 +1,5 @@
// @target: es6
// @declaration: true
var a: any;
let x, y, z, a1, a2, a3;

View file

@ -1,4 +1,5 @@
// @target: es5
// @declaration: true
var a: any;

View file

@ -1,4 +1,5 @@
// @target: es6
// @declaration: true
var a: any;

View file

@ -1,4 +1,5 @@
// @target: es5
// @declaration: true
var a: any;
let x, y, z, a1, a2, a3;

View file

@ -1,4 +1,5 @@
// @target: es6
// @declaration: true
var a: any;
let x, y, z, a1, a2, a3;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f({}) {
var x, y, z;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f(a, {}) {
var x, y, z;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f({}, a) {
var x, y, z;

View file

@ -1,4 +1,4 @@
// @declaration: true
function f({} = {a: 1, b: "2", c: true}) {
var x, y, z;