File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ module ts {
8989 forEach ( symbol . declarations , ( declaration ) => {
9090 file . semanticErrors . push ( createDiagnosticForNode ( declaration . name , Diagnostics . Duplicate_identifier_0 , getDisplayName ( declaration ) ) ) ;
9191 } ) ;
92- file . semanticErrors . push ( createDiagnosticForNode ( node , Diagnostics . Duplicate_identifier_0 , getDisplayName ( node ) ) ) ;
92+ file . semanticErrors . push ( createDiagnosticForNode ( node . name , Diagnostics . Duplicate_identifier_0 , getDisplayName ( node ) ) ) ;
9393
9494 symbol = createSymbol ( 0 , name ) ;
9595 }
Original file line number Diff line number Diff line change @@ -5727,7 +5727,7 @@ module ts {
57275727
57285728 if ( duplicateFunctionDeclaration ) {
57295729 forEach ( declarations , declaration => {
5730- error ( declaration , Diagnostics . Duplicate_function_implementation ) ;
5730+ error ( declaration . name , Diagnostics . Duplicate_function_implementation ) ;
57315731 } ) ;
57325732 }
57335733
You can’t perform that action at this time.
0 commit comments