Skip to content

Commit 26cf974

Browse files
committed
Accept baselines for parenthesized type assertions
1 parent 7a74d9f commit 26cf974

15 files changed

+87
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts(1,18): error TS2304: Cannot find name 'foo'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts (1 errors) ====
5+
var { x } = <any>foo();
6+
~~~
7+
!!! error TS2304: Cannot find name 'foo'.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_1.ts]
2+
var { x } = <any>foo();
3+
4+
//// [destructuringTypeAssertionsES5_1.js]
5+
var x = foo().x;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts(1,19): error TS2304: Cannot find name 'foo'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts (1 errors) ====
5+
var { x } = (<any>foo());
6+
~~~
7+
!!! error TS2304: Cannot find name 'foo'.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_2.ts]
2+
var { x } = (<any>foo());
3+
4+
//// [destructuringTypeAssertionsES5_2.js]
5+
var x = foo().x;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts(1,19): error TS2304: Cannot find name 'foo'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts (1 errors) ====
5+
var { x } = <any>(foo());
6+
~~~
7+
!!! error TS2304: Cannot find name 'foo'.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_3.ts]
2+
var { x } = <any>(foo());
3+
4+
//// [destructuringTypeAssertionsES5_3.js]
5+
var x = (foo()).x;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts(1,23): error TS2304: Cannot find name 'foo'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts (1 errors) ====
5+
var { x } = <any><any>foo();
6+
~~~
7+
!!! error TS2304: Cannot find name 'foo'.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_4.ts]
2+
var { x } = <any><any>foo();
3+
4+
//// [destructuringTypeAssertionsES5_4.js]
5+
var x = foo().x;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_5.ts]
2+
var { x } = <any>0;
3+
4+
//// [destructuringTypeAssertionsES5_5.js]
5+
var x = (0).x;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
=== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts ===
2+
var { x } = <any>0;
3+
>x : Symbol(x, Decl(destructuringTypeAssertionsES5_5.ts, 0, 5))
4+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts ===
2+
var { x } = <any>0;
3+
>x : any
4+
><any>0 : any
5+
>0 : number
6+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts(1,22): error TS2304: Cannot find name 'Foo'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts (1 errors) ====
5+
var { x } = <any>new Foo;
6+
~~~
7+
!!! error TS2304: Cannot find name 'Foo'.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_6.ts]
2+
var { x } = <any>new Foo;
3+
4+
//// [destructuringTypeAssertionsES5_6.js]
5+
var x = (new Foo).x;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts(1,27): error TS2304: Cannot find name 'Foo'.
2+
3+
4+
==== tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts (1 errors) ====
5+
var { x } = <any><any>new Foo;
6+
~~~
7+
!!! error TS2304: Cannot find name 'Foo'.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//// [destructuringTypeAssertionsES5_7.ts]
2+
var { x } = <any><any>new Foo;
3+
4+
//// [destructuringTypeAssertionsES5_7.js]
5+
var x = (new Foo).x;

0 commit comments

Comments
 (0)