Add new baselines for destructuring void

This commit is contained in:
Andrew Branch 2019-04-01 13:36:07 -07:00
parent b4ec2e4f50
commit ae391497b0
No known key found for this signature in database
GPG Key ID: 22CCA4B120C427D2
7 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,7 @@
//// [destructuringVoid.ts]
declare const v: void;
const {} = v;
//// [destructuringVoid.js]
var _a = v;

View File

@ -0,0 +1,7 @@
=== tests/cases/conformance/es6/destructuring/destructuringVoid.ts ===
declare const v: void;
>v : Symbol(v, Decl(destructuringVoid.ts, 0, 13))
const {} = v;
>v : Symbol(v, Decl(destructuringVoid.ts, 0, 13))

View File

@ -0,0 +1,7 @@
=== tests/cases/conformance/es6/destructuring/destructuringVoid.ts ===
declare const v: void;
>v : void
const {} = v;
>v : void

View File

@ -0,0 +1,9 @@
tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts(2,7): error TS2532: Object is possibly 'undefined'.
==== tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts (1 errors) ====
declare const v: void;
const {} = v;
~~
!!! error TS2532: Object is possibly 'undefined'.

View File

@ -0,0 +1,7 @@
//// [destructuringVoidStrictNullChecks.ts]
declare const v: void;
const {} = v;
//// [destructuringVoidStrictNullChecks.js]
var _a = v;

View File

@ -0,0 +1,7 @@
=== tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts ===
declare const v: void;
>v : Symbol(v, Decl(destructuringVoidStrictNullChecks.ts, 0, 13))
const {} = v;
>v : Symbol(v, Decl(destructuringVoidStrictNullChecks.ts, 0, 13))

View File

@ -0,0 +1,7 @@
=== tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts ===
declare const v: void;
>v : void
const {} = v;
>v : void