TypeScript/tests/baselines/reference/redeclareParameterInCatchBlock.errors.txt
Anders Hejlsberg 5c56684187 Merge branch 'master' into exportDefault
Conflicts:
	tests/baselines/reference/exportAssignDottedName.errors.txt
2015-03-06 17:20:44 -08:00

31 lines
No EOL
750 B
Text

tests/cases/compiler/redeclareParameterInCatchBlock.ts(5,11): error TS2492: Cannot redeclare identifier 'e' in catch clause
tests/cases/compiler/redeclareParameterInCatchBlock.ts(11,9): error TS2492: Cannot redeclare identifier 'e' in catch clause
==== tests/cases/compiler/redeclareParameterInCatchBlock.ts (2 errors) ====
try {
} catch(e) {
const e = null;
~
!!! error TS2492: Cannot redeclare identifier 'e' in catch clause
}
try {
} catch(e) {
let e;
~
!!! error TS2492: Cannot redeclare identifier 'e' in catch clause
}
try {
} catch(e) {
function test() {
let e;
}
}