destructuringTypeAssertionsES5_1.ts(1,18): error TS2304: Cannot find name 'foo'.


==== destructuringTypeAssertionsES5_1.ts (1 errors) ====
    var { x } = <any>foo();
                     ~~~
!!! error TS2304: Cannot find name 'foo'.