TypeScript/tests/baselines/reference/destructuringTypeAssertionsES5_6.js
2015-06-03 17:22:51 -07:00

5 lines
139 B
TypeScript

//// [destructuringTypeAssertionsES5_6.ts]
var { x } = <any>new Foo;
//// [destructuringTypeAssertionsES5_6.js]
var x = (new Foo).x;