mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Add tests for parenthesized type assertions
This commit is contained in:
parent
4ccf088734
commit
7a74d9f8d0
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = <any>foo();
|
||||
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = (<any>foo());
|
||||
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = <any>(foo());
|
||||
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = <any><any>foo();
|
||||
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = <any>0;
|
||||
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = <any>new Foo;
|
||||
@ -0,0 +1,2 @@
|
||||
//@target: ES5
|
||||
var { x } = <any><any>new Foo;
|
||||
Loading…
x
Reference in New Issue
Block a user