Skip to content

Commit c0821ae

Browse files
authored
fix(44926): change noImplicitOverride description (microsoft#44929)
1 parent 1de29af commit c0821ae

File tree

16 files changed

+16
-16
lines changed

16 files changed

+16
-16
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ namespace ts {
727727
type: "boolean",
728728
affectsSemanticDiagnostics: true,
729729
category: Diagnostics.Type_Checking,
730-
description: Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index
730+
description: Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier
731731
},
732732
{
733733
name: "noPropertyAccessFromIndexSignature",

tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
8989
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9090
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
91-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
91+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9292
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9393
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9494
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface Array<T> { length: number; [n: number]: T; }
109109
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
110110
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
111111
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
112-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
112+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
113113
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
114114
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
115115
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface Array<T> { length: number; [n: number]: T; }
109109
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
110110
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
111111
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
112-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
112+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
113113
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
114114
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
115115
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface Array<T> { length: number; [n: number]: T; }
109109
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
110110
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
111111
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
112-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
112+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
113113
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
114114
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
115115
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface Array<T> { length: number; [n: number]: T; }
109109
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
110110
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
111111
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
112-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
112+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
113113
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
114114
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
115115
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface Array<T> { length: number; [n: number]: T; }
109109
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
110110
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
111111
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
112-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
112+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
113113
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
114114
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
115115
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface Array<T> { length: number; [n: number]: T; }
109109
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
110110
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
111111
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
112-
// "noImplicitOverride": true, /* Add `undefined` to a type when accessed using an index. */
112+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
113113
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
114114
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
115115
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */

0 commit comments

Comments
 (0)