mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 16:38:46 -05:00
Added declaration option to empty destructuring tests.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user