==== tests/cases/compiler/duplicateIdentifierInCatchBlock.ts (4 errors) ==== var v; try { } catch (e) { function v() { } ~ !!! Duplicate identifier 'v'. } function w() { } try { } catch (e) { var w; ~ !!! Duplicate identifier 'w'. } try { } catch (e) { var x; function x() { } // error ~ !!! Duplicate identifier 'x'. function e() { } // error var p: string; var p: number; // error ~ !!! Subsequent variable declarations must have the same type. Variable 'p' must be of type 'string', but here has type 'number'. }