TypeScript/tests/cases/compiler/scopingInCatchBlocks.ts
2014-07-12 17:30:19 -07:00

10 lines
154 B
TypeScript

try { } catch(ex1) {
throw ex1;
}
try { } catch(ex1) { } // should not error
try { } catch(ex1) { } // should not error
var x = ex1; // should error