Skip to content

Commit ae39149

Browse files
committed
Add new baselines for destructuring void
1 parent b4ec2e4 commit ae39149

7 files changed

+51
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//// [destructuringVoid.ts]
2+
declare const v: void;
3+
const {} = v;
4+
5+
6+
//// [destructuringVoid.js]
7+
var _a = v;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/conformance/es6/destructuring/destructuringVoid.ts ===
2+
declare const v: void;
3+
>v : Symbol(v, Decl(destructuringVoid.ts, 0, 13))
4+
5+
const {} = v;
6+
>v : Symbol(v, Decl(destructuringVoid.ts, 0, 13))
7+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/conformance/es6/destructuring/destructuringVoid.ts ===
2+
declare const v: void;
3+
>v : void
4+
5+
const {} = v;
6+
>v : void
7+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts(2,7): error TS2532: Object is possibly 'undefined'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts (1 errors) ====
5+
declare const v: void;
6+
const {} = v;
7+
~~
8+
!!! error TS2532: Object is possibly 'undefined'.
9+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//// [destructuringVoidStrictNullChecks.ts]
2+
declare const v: void;
3+
const {} = v;
4+
5+
6+
//// [destructuringVoidStrictNullChecks.js]
7+
var _a = v;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts ===
2+
declare const v: void;
3+
>v : Symbol(v, Decl(destructuringVoidStrictNullChecks.ts, 0, 13))
4+
5+
const {} = v;
6+
>v : Symbol(v, Decl(destructuringVoidStrictNullChecks.ts, 0, 13))
7+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts ===
2+
declare const v: void;
3+
>v : void
4+
5+
const {} = v;
6+
>v : void
7+

0 commit comments

Comments
 (0)