2014-07-13 01:04:16 +02:00
|
|
|
//// [duplicateIdentifierInCatchBlock.ts]
|
|
|
|
var v;
|
|
|
|
try { } catch (e) {
|
|
|
|
function v() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
function w() { }
|
|
|
|
try { } catch (e) {
|
|
|
|
var w;
|
|
|
|
}
|
|
|
|
|
|
|
|
try { } catch (e) {
|
|
|
|
var x;
|
|
|
|
function x() { } // error
|
|
|
|
function e() { } // error
|
|
|
|
var p: string;
|
|
|
|
var p: number; // error
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [duplicateIdentifierInCatchBlock.js]
|
|
|
|
var v;
|
2015-02-07 03:45:09 +01:00
|
|
|
try { }
|
2014-07-13 01:04:16 +02:00
|
|
|
catch (e) {
|
2015-02-07 03:45:09 +01:00
|
|
|
function v() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
function w() { }
|
|
|
|
try { }
|
2014-07-13 01:04:16 +02:00
|
|
|
catch (e) {
|
|
|
|
var w;
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
try { }
|
2014-07-13 01:04:16 +02:00
|
|
|
catch (e) {
|
|
|
|
var x;
|
2015-02-07 03:45:09 +01:00
|
|
|
function x() { } // error
|
|
|
|
function e() { } // error
|
2014-07-13 01:04:16 +02:00
|
|
|
var p;
|
2014-08-15 22:18:54 +02:00
|
|
|
var p; // error
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|