2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/scopingInCatchBlocks.ts(9,9): error TS2304: Cannot find name 'ex1'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/scopingInCatchBlocks.ts (1 errors) ====
|
|
|
|
try { } catch(ex1) {
|
|
|
|
throw ex1;
|
|
|
|
}
|
|
|
|
|
|
|
|
try { } catch(ex1) { } // should not error
|
|
|
|
|
|
|
|
try { } catch(ex1) { } // should not error
|
|
|
|
|
|
|
|
var x = ex1; // should error
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'ex1'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|