File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ module ts {
89
89
forEach ( symbol . declarations , ( declaration ) => {
90
90
file . semanticErrors . push ( createDiagnosticForNode ( declaration . name , Diagnostics . Duplicate_identifier_0 , getDisplayName ( declaration ) ) ) ;
91
91
} ) ;
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 ) ) ) ;
93
93
94
94
symbol = createSymbol ( 0 , name ) ;
95
95
}
Original file line number Diff line number Diff line change @@ -5727,7 +5727,7 @@ module ts {
5727
5727
5728
5728
if ( duplicateFunctionDeclaration ) {
5729
5729
forEach ( declarations , declaration => {
5730
- error ( declaration , Diagnostics . Duplicate_function_implementation ) ;
5730
+ error ( declaration . name , Diagnostics . Duplicate_function_implementation ) ;
5731
5731
} ) ;
5732
5732
}
5733
5733
You can’t perform that action at this time.
0 commit comments