TypeScript/tests/cases/compiler/scopingInCatchBlocks.ts

10 lines
154 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
try { } catch(ex1) {
throw ex1;
}
try { } catch(ex1) { } // should not error
try { } catch(ex1) { } // should not error
var x = ex1; // should error