Accepted baselines.
This commit is contained in:
parent
e3657bccff
commit
906634f0a4
10 changed files with 272 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
//// [emptyVariableDeclarationBindingPatterns01_ES5.ts]
|
||||
|
||||
(function () {
|
||||
var a: any;
|
||||
|
||||
var {} = a;
|
||||
let {} = a;
|
||||
const {} = a;
|
||||
|
||||
var [] = a;
|
||||
let [] = a;
|
||||
const [] = a;
|
||||
})();
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns01_ES5.js]
|
||||
(function () {
|
||||
var a;
|
||||
var ;
|
||||
var ;
|
||||
var ;
|
||||
var ;
|
||||
var ;
|
||||
var ;
|
||||
})();
|
||||
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns01_ES5.d.ts]
|
|
@ -0,0 +1,25 @@
|
|||
=== tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts ===
|
||||
|
||||
(function () {
|
||||
var a: any;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
var {} = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
let {} = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
const {} = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
var [] = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
let [] = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
const [] = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES5.ts, 2, 7))
|
||||
|
||||
})();
|
|
@ -0,0 +1,29 @@
|
|||
=== tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts ===
|
||||
|
||||
(function () {
|
||||
>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a;})() : void
|
||||
>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a;}) : () => void
|
||||
>function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a;} : () => void
|
||||
|
||||
var a: any;
|
||||
>a : any
|
||||
|
||||
var {} = a;
|
||||
>a : any
|
||||
|
||||
let {} = a;
|
||||
>a : any
|
||||
|
||||
const {} = a;
|
||||
>a : any
|
||||
|
||||
var [] = a;
|
||||
>a : any
|
||||
|
||||
let [] = a;
|
||||
>a : any
|
||||
|
||||
const [] = a;
|
||||
>a : any
|
||||
|
||||
})();
|
|
@ -0,0 +1,27 @@
|
|||
//// [emptyVariableDeclarationBindingPatterns01_ES6.ts]
|
||||
|
||||
(function () {
|
||||
var a: any;
|
||||
|
||||
var {} = a;
|
||||
let {} = a;
|
||||
const {} = a;
|
||||
|
||||
var [] = a;
|
||||
let [] = a;
|
||||
const [] = a;
|
||||
})();
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns01_ES6.js]
|
||||
(function () {
|
||||
var a;
|
||||
var { } = a;
|
||||
let { } = a;
|
||||
const { } = a;
|
||||
var [] = a;
|
||||
let [] = a;
|
||||
const [] = a;
|
||||
})();
|
||||
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns01_ES6.d.ts]
|
|
@ -0,0 +1,25 @@
|
|||
=== tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES6.ts ===
|
||||
|
||||
(function () {
|
||||
var a: any;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
var {} = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
let {} = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
const {} = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
var [] = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
let [] = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
const [] = a;
|
||||
>a : Symbol(a, Decl(emptyVariableDeclarationBindingPatterns01_ES6.ts, 2, 7))
|
||||
|
||||
})();
|
|
@ -0,0 +1,29 @@
|
|||
=== tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES6.ts ===
|
||||
|
||||
(function () {
|
||||
>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a;})() : void
|
||||
>(function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a;}) : () => void
|
||||
>function () { var a: any; var {} = a; let {} = a; const {} = a; var [] = a; let [] = a; const [] = a;} : () => void
|
||||
|
||||
var a: any;
|
||||
>a : any
|
||||
|
||||
var {} = a;
|
||||
>a : any
|
||||
|
||||
let {} = a;
|
||||
>a : any
|
||||
|
||||
const {} = a;
|
||||
>a : any
|
||||
|
||||
var [] = a;
|
||||
>a : any
|
||||
|
||||
let [] = a;
|
||||
>a : any
|
||||
|
||||
const [] = a;
|
||||
>a : any
|
||||
|
||||
})();
|
|
@ -0,0 +1,31 @@
|
|||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts(3,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts(4,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts(5,11): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts(7,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts(8,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts(9,11): error TS1182: A destructuring declaration must have an initializer.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts (6 errors) ====
|
||||
|
||||
(function () {
|
||||
var {};
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
let {};
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
const {};
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
|
||||
var [];
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
let [];
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
const [];
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
})();
|
|
@ -0,0 +1,24 @@
|
|||
//// [emptyVariableDeclarationBindingPatterns02_ES5.ts]
|
||||
|
||||
(function () {
|
||||
var {};
|
||||
let {};
|
||||
const {};
|
||||
|
||||
var [];
|
||||
let [];
|
||||
const [];
|
||||
})();
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns02_ES5.js]
|
||||
(function () {
|
||||
var _a = void 0;
|
||||
var _b = void 0;
|
||||
var _c = void 0;
|
||||
var _d = void 0;
|
||||
var _e = void 0;
|
||||
var _f = void 0;
|
||||
})();
|
||||
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns02_ES5.d.ts]
|
|
@ -0,0 +1,31 @@
|
|||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts(3,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts(4,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts(5,11): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts(7,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts(8,9): error TS1182: A destructuring declaration must have an initializer.
|
||||
tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts(9,11): error TS1182: A destructuring declaration must have an initializer.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts (6 errors) ====
|
||||
|
||||
(function () {
|
||||
var {};
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
let {};
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
const {};
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
|
||||
var [];
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
let [];
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
const [];
|
||||
~~
|
||||
!!! error TS1182: A destructuring declaration must have an initializer.
|
||||
})();
|
|
@ -0,0 +1,24 @@
|
|||
//// [emptyVariableDeclarationBindingPatterns02_ES6.ts]
|
||||
|
||||
(function () {
|
||||
var {};
|
||||
let {};
|
||||
const {};
|
||||
|
||||
var [];
|
||||
let [];
|
||||
const [];
|
||||
})();
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns02_ES6.js]
|
||||
(function () {
|
||||
var { };
|
||||
let { };
|
||||
const { };
|
||||
var [];
|
||||
let [];
|
||||
const [];
|
||||
})();
|
||||
|
||||
|
||||
//// [emptyVariableDeclarationBindingPatterns02_ES6.d.ts]
|
Loading…
Reference in a new issue