Added declaration option to empty destructuring tests.
This commit is contained in:
parent
5542e396d7
commit
9d3907ffbe
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f([]) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f(a, []) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f(a, []) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f([] = [1,2,3,4]) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es5
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es6
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es5
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
let x, y, z, a1, a2, a3;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es6
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
let x, y, z, a1, a2, a3;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es5
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es6
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es5
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
let x, y, z, a1, a2, a3;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @target: es6
|
||||
// @declaration: true
|
||||
|
||||
var a: any;
|
||||
let x, y, z, a1, a2, a3;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f({}) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f(a, {}) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f({}, a) {
|
||||
var x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// @declaration: true
|
||||
|
||||
function f({} = {a: 1, b: "2", c: true}) {
|
||||
var x, y, z;
|
||||
|
|
Loading…
Reference in a new issue